Also compute interference intervals for blocks with no uses.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Fri, 4 Feb 2011 00:39:20 +0000 (00:39 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Fri, 4 Feb 2011 00:39:20 +0000 (00:39 +0000)
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124839 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/RegAllocGreedy.cpp

index 92f97d046f5d88356a8b0b6b8cd4f8bb5b2937f5..2c772a209757c0ba1191e0e42fa92b35d96607b8 100644 (file)
@@ -611,9 +611,7 @@ void RAGreedy::splitAroundRegion(LiveInterval &VirtReg, unsigned PhysReg,
     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);