summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
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
commitf48367b8e9dbbec4a9a2be6cd529d759aced86bd (patch)
treeaa6d4b26bb3236095a2f8fe4474219c8eeb64d72 /llvm/lib/CodeGen
parent6be78004a59658a0d89b529b6b97f2d4ebd89bb7 (diff)
downloadbcm5719-llvm-f48367b8e9dbbec4a9a2be6cd529d759aced86bd.tar.gz
bcm5719-llvm-f48367b8e9dbbec4a9a2be6cd529d759aced86bd.zip
Handle cases where there aren't uses in the barrier mbb.
llvm-svn: 58174
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/PreAllocSplitting.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/PreAllocSplitting.cpp b/llvm/lib/CodeGen/PreAllocSplitting.cpp
index 1b2b635f393..456be09ecd3 100644
--- a/llvm/lib/CodeGen/PreAllocSplitting.cpp
+++ b/llvm/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);
}
OpenPOWER on IntegriCloud