summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2011-03-29 03:12:04 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2011-03-29 03:12:04 +0000
commit12877b8a15324e804b19899bba34d9529e24e0e3 (patch)
treed030c03231f0493beb53c0fb01310cf30d481405 /llvm/lib
parentd8af5298d102d8c82ccf7a5b6bed3d8ae27b2089 (diff)
downloadbcm5719-llvm-12877b8a15324e804b19899bba34d9529e24e0e3.tar.gz
bcm5719-llvm-12877b8a15324e804b19899bba34d9529e24e0e3.zip
Handle the special case when all uses follow the last split point.
llvm-svn: 128450
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/SplitKit.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SplitKit.cpp b/llvm/lib/CodeGen/SplitKit.cpp
index a9ad731da6d..b89ff0c4fc8 100644
--- a/llvm/lib/CodeGen/SplitKit.cpp
+++ b/llvm/lib/CodeGen/SplitKit.cpp
@@ -928,7 +928,8 @@ void SplitEditor::splitSingleBlocks(const SplitAnalysis::BlockPtrSet &Blocks) {
continue;
openIntv();
- SlotIndex SegStart = enterIntvBefore(BI.FirstUse);
+ SlotIndex SegStart = enterIntvBefore(std::min(BI.FirstUse,
+ BI.LastSplitPoint));
if (!BI.LiveOut || BI.LastUse < BI.LastSplitPoint) {
useIntv(SegStart, leaveIntvAfter(BI.LastUse));
} else {
OpenPOWER on IntegriCloud