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

David Green via llvm-commits llvm-commits at lists.llvm.org
Mon May 5 23:36:29 PDT 2025


================
@@ -211,20 +217,24 @@ LegalizeActionStep LegalizeRuleSet::apply(const LegalityQuery &Query) const {
 bool LegalizeRuleSet::verifyTypeIdxsCoverage(unsigned NumTypeIdxs) const {
 #ifndef NDEBUG
   if (Rules.empty()) {
-    LLVM_DEBUG(
-        dbgs() << ".. type index coverage check SKIPPED: no rules defined\n");
+    if (VerboseVerifyLegalizerInfo)
----------------
davemgreen wrote:

I was assuming that AllCovered is still a useful check (I was trying not to alter what was tested with the verbosity option). Let me know if I should skip the whole thing.

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


More information about the llvm-commits mailing list