[llvm] [MachineCombiner] Don't count debug instructions in block size (PR #225765)
Mikael Holmen via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 6 00:00:02 PDT 2026
================
@@ -632,7 +632,7 @@ bool MachineCombinerImpl::combineInstructions(MachineBasicBlock *MBB) {
if (DoRegPressureReduce &&
getCombinerObjective(P) ==
CombinerObjective::MustReduceRegisterPressure) {
- if (MBB->size() > inc_threshold) {
+ if (MBB->sizeWithoutDebugLargerThan(inc_threshold)) {
----------------
mikaelholmen wrote:
@cofibrant : that's why I asked you yesterday how you wanted it.
I will split up the patches even more.
https://github.com/llvm/llvm-project/pull/225765
More information about the llvm-commits
mailing list