We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40d34b2 commit cd7b2d3Copy full SHA for cd7b2d3
compiler/rustc_mir/src/transform/inline.rs
@@ -252,9 +252,9 @@ impl Inliner<'tcx> {
252
self.tcx.sess.opts.debugging_opts.inline_mir_threshold
253
};
254
255
- // Significantly lower the threshold for inlining cold functions
256
if codegen_fn_attrs.flags.contains(CodegenFnAttrFlags::COLD) {
257
- threshold /= 5;
+ debug!("#[cold] present - not inlining");
+ return false;
258
}
259
260
// Give a bonus functions with a small number of blocks,
0 commit comments