projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
37ca2e8
)
Avoid recomputing an inserted instruction's SlotIndex.
author
Cameron Zwarich
<zwarich@apple.com>
Wed, 20 Feb 2013 06:46:32 +0000
(06:46 +0000)
committer
Cameron Zwarich
<zwarich@apple.com>
Wed, 20 Feb 2013 06:46:32 +0000
(06:46 +0000)
llvm-svn: 175597
llvm/lib/CodeGen/PHIElimination.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/CodeGen/PHIElimination.cpp
b/llvm/lib/CodeGen/PHIElimination.cpp
index
37e2ee1
..
061c385
100644
(file)
--- a/
llvm/lib/CodeGen/PHIElimination.cpp
+++ b/
llvm/lib/CodeGen/PHIElimination.cpp
@@
-306,10
+306,9
@@
void PHIElimination::LowerPHINode(MachineBasicBlock &MBB,
// Update LiveIntervals for the new copy or implicit def.
if (LIS) {
MachineInstr *NewInstr = prior(AfterPHIsIt);
- LIS->InsertMachineInstrInMaps(NewInstr);
+
SlotIndex DestCopyIndex =
LIS->InsertMachineInstrInMaps(NewInstr);
SlotIndex MBBStartIndex = LIS->getMBBStartIdx(&MBB);
- SlotIndex DestCopyIndex = LIS->getInstructionIndex(NewInstr);
if (IncomingReg) {
// Add the region from the beginning of MBB to the copy instruction to
// IncomingReg's live interval.