summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SplitKit.cpp
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2011-07-18 18:47:13 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2011-07-18 18:47:13 +0000
commitc45d38e14a4a101ce036a6c74828a9e10bd98a5a (patch)
treeb3068a459f470fe068f498cf41a93499326139fa /llvm/lib/CodeGen/SplitKit.cpp
parent494c549ebd7e194df0a4df542e85253e2c824d32 (diff)
downloadbcm5719-llvm-c45d38e14a4a101ce036a6c74828a9e10bd98a5a.tar.gz
bcm5719-llvm-c45d38e14a4a101ce036a6c74828a9e10bd98a5a.zip
Fix a crash when building 177.mesa for armv6.
When splitting a live range immediately before an LDR_POST instruction that redefines the address register, make sure to use the correct value number in leaveIntvBefore. We need the value number entering the instruction. <rdar://problem/9793765> llvm-svn: 135413
Diffstat (limited to 'llvm/lib/CodeGen/SplitKit.cpp')
-rw-r--r--llvm/lib/CodeGen/SplitKit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SplitKit.cpp b/llvm/lib/CodeGen/SplitKit.cpp
index 761cab7ce85..5ba6faca165 100644
--- a/llvm/lib/CodeGen/SplitKit.cpp
+++ b/llvm/lib/CodeGen/SplitKit.cpp
@@ -730,7 +730,7 @@ SlotIndex SplitEditor::leaveIntvBefore(SlotIndex Idx) {
DEBUG(dbgs() << " leaveIntvBefore " << Idx);
// The interval must be live into the instruction at Idx.
- Idx = Idx.getBoundaryIndex();
+ Idx = Idx.getBaseIndex();
VNInfo *ParentVNI = Edit->getParent().getVNInfoAt(Idx);
if (!ParentVNI) {
DEBUG(dbgs() << ": not live\n");
OpenPOWER on IntegriCloud