regalloc.rs icon indicating copy to clipboard operation
regalloc.rs copied to clipboard

Mark Reg::new_real and Reg::new_virtual as #[inline]

Open bjorn3 opened this issue 5 years ago • 0 comments

Otherwise they can't be inlined into users of regalloc.rs. On one profile it took 4 samples of the cranelift_codegen::isa::x64::abi::compute_arg_locs function, which has 12 samples. While this is of course not very accurate due to the very small sample count, inlining them should still give a small improvement.

bjorn3 avatar Aug 21 '20 11:08 bjorn3