diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-07-18 18:47:13 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-07-18 18:47:13 +0000 |
commit | c45d38e14a4a101ce036a6c74828a9e10bd98a5a (patch) | |
tree | b3068a459f470fe068f498cf41a93499326139fa /llvm/lib/CodeGen/SplitKit.cpp | |
parent | 494c549ebd7e194df0a4df542e85253e2c824d32 (diff) | |
download | bcm5719-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.cpp | 2 |
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"); |