[llvm] [MISched] Dump region header under -misched-print-dags (PR #215090)

Nathan Corbyn via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 10 01:40:27 PDT 2026


================
@@ -860,13 +860,20 @@ void MachineSchedulerBase::scheduleRegions(ScheduleDAGInstrs &Scheduler,
         Scheduler.exitRegion();
         continue;
       }
-      LLVM_DEBUG(dbgs() << "********** MI Scheduling **********\n");
-      LLVM_DEBUG(dbgs() << MF->getName() << ":" << printMBBReference(*MBB)
-                        << " " << MBB->getName() << "\n  From: " << *I
-                        << "    To: ";
-                 if (RegionEnd != MBB->end()) dbgs() << *RegionEnd;
-                 else dbgs() << "End\n";
-                 dbgs() << " RegionInstrs: " << NumRegionInstrs << '\n');
+      auto DumpRegionHeader = [&] {
+        dbgs() << "********** MI Scheduling **********\n";
----------------
cofibrant wrote:

We should certainly keep it for debug printing, what I mean is that I don't think it should be part of the `-print-dags` output

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


More information about the llvm-commits mailing list