aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/PreAllocSplitting.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2008-10-25 23:49:39 +0000
committerEvan Cheng <evan.cheng@apple.com>2008-10-25 23:49:39 +0000
commit79d5b5acaec05cf2caba02ed023427da959e0b11 (patch)
tree85c61558d735db3942b546223482520f320f48eb /lib/CodeGen/PreAllocSplitting.cpp
parent95a3f0d99e9551404c217f62d0991b922ead22a9 (diff)
Handle cases where there aren't uses in the barrier mbb.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58174 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/PreAllocSplitting.cpp')
-rw-r--r--lib/CodeGen/PreAllocSplitting.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/CodeGen/PreAllocSplitting.cpp b/lib/CodeGen/PreAllocSplitting.cpp
index 1b2b635f39..456be09ecd 100644
--- a/lib/CodeGen/PreAllocSplitting.cpp
+++ b/lib/CodeGen/PreAllocSplitting.cpp
@@ -457,8 +457,12 @@ PreAllocSplitting::ShrinkWrapLiveInterval(VNInfo *ValNo,
DefMI->eraseFromParent();
CurrLI->removeRange(ValNo->def, LIs->getMBBEndIdx(MBB)+1);
}
+ } else if (MBB == BarrierMBB) {
+ // Remove entire live range from start of mbb to barrier.
+ CurrLI->removeRange(LIs->getMBBStartIdx(MBB),
+ LIs->getUseIndex(BarrierIdx)+1);
} else {
- // Remove entire live range of the bb out of the live interval.
+ // Remove entire live range of the mbb out of the live interval.
CurrLI->removeRange(LIs->getMBBStartIdx(MBB), LIs->getMBBEndIdx(MBB)+1);
}