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

Jakob Stoklund Olesen stoklund at 2pi.dk
Thu Feb 3 16:39:20 PST 2011


Author: stoklund
Date: Thu Feb  3 18:39:20 2011
New Revision: 124839

URL: http://llvm.org/viewvc/llvm-project?rev=124839&view=rev
Log:
Also compute interference intervals for blocks with no uses.

When the live range is live through a block that doesn't use the register, but
that has interference, region splitting wants to split at the top and bottom of
the basic block.

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=124839&r1=124838&r2=124839&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/RegAllocGreedy.cpp (original)
+++ llvm/trunk/lib/CodeGen/RegAllocGreedy.cpp Thu Feb  3 18:39:20 2011
@@ -611,9 +611,7 @@
     if (!IntI.valid())
       continue;
     for (unsigned i = 0, e = LiveBlocks.size(); i != e; ++i) {
-      BlockInfo &BI = LiveBlocks[i];
-      if (!BI.Uses)
-        continue;
+      const BlockInfo &BI = LiveBlocks[i];
       IndexPair &IP = InterferenceRanges[i];
       SlotIndex Start, Stop;
       tie(Start, Stop) = Indexes->getMBBRange(BI.MBB);





More information about the llvm-commits mailing list