[llvm] [NFC][TableGen] Code cleanup in CodeGenRegister (PR #137994)

Rahul Joshi via llvm-commits llvm-commits at lists.llvm.org
Fri May 2 05:10:38 PDT 2025


================
@@ -2185,11 +2170,13 @@ void CodeGenRegBank::computeRegUnitSets() {
 
       // Find an existing RegUnitSet, or add the union to the unique sets.
       if (findRegUnitSet(RegUnitSets, RUSet) == RegUnitSets.end()) {
-        LLVM_DEBUG(dbgs() << "UnitSet " << RegUnitSets.size() << " "
-                          << RUSet.Name << ":";
-                   for (auto &U
-                        : RUSet.Units) printRegUnitName(U);
-                   dbgs() << "\n";);
+        LLVM_DEBUG({
+          dbgs() << "UnitSet " << RegUnitSets.size() << " " << RUSet.Name
+                 << ":";
+          for (auto &U : RUSet.Units)
+            printRegUnitName(U);
----------------
jurahul wrote:

moved to helper function.

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


More information about the llvm-commits mailing list