[llvm] [GlobalISel] Put legalizer rule debug behind a verbose option. (PR #138277)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Fri May 2 07:05:29 PDT 2025


================
@@ -396,11 +410,12 @@ void LegalizerInfo::verify(const MCInstrInfo &MII) const {
                      ? std::max(OpInfo.getGenericImmIndex() + 1U, Acc)
                      : Acc;
         });
-    LLVM_DEBUG(dbgs() << MII.getName(Opcode) << " (opcode " << Opcode
-                      << "): " << NumTypeIdxs << " type ind"
-                      << (NumTypeIdxs == 1 ? "ex" : "ices") << ", "
-                      << NumImmIdxs << " imm ind"
-                      << (NumImmIdxs == 1 ? "ex" : "ices") << "\n");
+    if (VerboseVerifyLegalizerInfo)
----------------
arsenm wrote:

Braces on all of these 

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


More information about the llvm-commits mailing list