[llvm] [NFC][TableGen] Code cleanup in CodeGenRegister (PR #137994)
Jason Eckhardt via llvm-commits
llvm-commits at lists.llvm.org
Thu May 1 17:42:35 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);
----------------
nvjle wrote:
Use `formatv` or `llvm::interleaved` to eliminate loop?
But if this stays as is, don't "always auto".
https://github.com/llvm/llvm-project/pull/137994
More information about the llvm-commits
mailing list