[llvm] [MachineCombiner] Don't count debug instructions in block size (PR #225765)

Bill Wendling via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 5 01:58:05 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)) {
----------------
isanbard wrote:

Can you create a testcase for this path for another architecture?

https://github.com/llvm/llvm-project/pull/225765


More information about the llvm-commits mailing list