aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2011-02-04 00:39:20 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2011-02-04 00:39:20 +0000
commit45139874a776f4fad581fc3ef81ab77b34b4f593 (patch)
tree4b1de2bc7b6617360d85743154900ba08f0faeca /lib/CodeGen
parenta7b586ba7410dd2dddbfa82a6a57485985747f2c (diff)
downloadexternal_llvm-45139874a776f4fad581fc3ef81ab77b34b4f593.zip
external_llvm-45139874a776f4fad581fc3ef81ab77b34b4f593.tar.gz
external_llvm-45139874a776f4fad581fc3ef81ab77b34b4f593.tar.bz2
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124839 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r--lib/CodeGen/RegAllocGreedy.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/CodeGen/RegAllocGreedy.cpp b/lib/CodeGen/RegAllocGreedy.cpp
index 92f97d0..2c772a2 100644
--- a/lib/CodeGen/RegAllocGreedy.cpp
+++ b/lib/CodeGen/RegAllocGreedy.cpp
@@ -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);