diff options
author | Evan Cheng <evan.cheng@apple.com> | 2008-10-25 23:49:39 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2008-10-25 23:49:39 +0000 |
commit | f48367b8e9dbbec4a9a2be6cd529d759aced86bd (patch) | |
tree | aa6d4b26bb3236095a2f8fe4474219c8eeb64d72 /llvm/lib/CodeGen | |
parent | 6be78004a59658a0d89b529b6b97f2d4ebd89bb7 (diff) | |
download | bcm5719-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.cpp | 6 |
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); } |