[llvm] [GlobalISel] Dump the machine function after each legalization iteration. NFC (PR #83401)

Pierre van Houtryve via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 1 00:38:01 PST 2024


================
@@ -223,6 +223,7 @@ Legalizer::legalizeMachineFunction(MachineFunction &MF, const LegalizerInfo &LI,
   SmallVector<MachineInstr *, 128> RetryList;
   do {
     LLVM_DEBUG(dbgs() << "=== New Iteration ===\n");
+    LLVM_DEBUG(MF.dump());
----------------
Pierre-vh wrote:

The main downside I see is that this will be redundant with `-print-before-all`
Maybe don't print it if it's the first iteration?

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


More information about the llvm-commits mailing list