[llvm-commits] [llvm] r134412 - /llvm/trunk/lib/CodeGen/RegAllocGreedy.cpp

Jakob Stoklund Olesen stoklund at 2pi.dk
Tue Jul 5 08:38:37 PDT 2011


Author: stoklund
Date: Tue Jul  5 10:38:37 2011
New Revision: 134412

URL: http://llvm.org/viewvc/llvm-project?rev=134412&view=rev
Log:
Tweak comment and debug output.

Modified:
    llvm/trunk/lib/CodeGen/RegAllocGreedy.cpp

Modified: llvm/trunk/lib/CodeGen/RegAllocGreedy.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/RegAllocGreedy.cpp?rev=134412&r1=134411&r2=134412&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/RegAllocGreedy.cpp (original)
+++ llvm/trunk/lib/CodeGen/RegAllocGreedy.cpp Tue Jul  5 10:38:37 2011
@@ -958,7 +958,8 @@
     //
     //                 ~    Interference after last use.
     //     |---o---o--o|    Live-out on stack, late last use.
-    //     =========____    Copy to stack after LSP, overlap MainIntv.
+    //     ============     Copy to stack after LSP, overlap MainIntv.
+    //            \_____    Stack interval is live-out.
     //
     if (!RegOut && Intf.first() > BI.LastUse.getBoundaryIndex()) {
       assert(RegIn && "Stack-in, stack-out should already be handled");
@@ -998,8 +999,8 @@
     // The interference is overlapping somewhere we wanted to use MainIntv. That
     // means we need to create a local interval that can be allocated a
     // different register.
-    DEBUG(dbgs() << ", creating local interval.\n");
     unsigned LocalIntv = SE->openIntv();
+    DEBUG(dbgs() << ", creating local interval " << LocalIntv << ".\n");
 
     // We may be creating copies directly between MainIntv and LocalIntv,
     // bypassing the stack interval. When we do that, we should never use the





More information about the llvm-commits mailing list