[llvm] 1b41945 - RegAllocGreedy: Add spaces between registers in debug message

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 10 10:12:45 PDT 2021


Author: Matt Arsenault
Date: 2021-08-10T13:12:34-04:00
New Revision: 1b41945da0c180aa5d6fb82e9fcc9cebcc4cae30

URL: https://github.com/llvm/llvm-project/commit/1b41945da0c180aa5d6fb82e9fcc9cebcc4cae30
DIFF: https://github.com/llvm/llvm-project/commit/1b41945da0c180aa5d6fb82e9fcc9cebcc4cae30.diff

LOG: RegAllocGreedy: Add spaces between registers in debug message

Added: 
    

Modified: 
    llvm/lib/CodeGen/RegAllocGreedy.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/CodeGen/RegAllocGreedy.cpp b/llvm/lib/CodeGen/RegAllocGreedy.cpp
index 4eb12aa30ee9..cc08aad246cd 100644
--- a/llvm/lib/CodeGen/RegAllocGreedy.cpp
+++ b/llvm/lib/CodeGen/RegAllocGreedy.cpp
@@ -2462,12 +2462,12 @@ unsigned RAGreedy::tryLocalSplit(LiveInterval &VirtReg, AllocationOrder &Order,
   bool LiveAfter = BestAfter != NumGaps || BI.LiveOut;
   unsigned NewGaps = LiveBefore + BestAfter - BestBefore + LiveAfter;
   if (NewGaps >= NumGaps) {
-    LLVM_DEBUG(dbgs() << "Tagging non-progress ranges: ");
+    LLVM_DEBUG(dbgs() << "Tagging non-progress ranges:");
     assert(!ProgressRequired && "Didn't make progress when it was required.");
     for (unsigned I = 0, E = IntvMap.size(); I != E; ++I)
       if (IntvMap[I] == 1) {
         setStage(LIS->getInterval(LREdit.get(I)), RS_Split2);
-        LLVM_DEBUG(dbgs() << printReg(LREdit.get(I)));
+        LLVM_DEBUG(dbgs() << ' ' << printReg(LREdit.get(I)));
       }
     LLVM_DEBUG(dbgs() << '\n');
   }


        


More information about the llvm-commits mailing list