projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
4c57942
)
Fix a bug with the LiveIntervals updating in the two-address pass found by
author
Cameron Zwarich
<zwarich@apple.com>
Sat, 23 Feb 2013 04:49:22 +0000
(
04:49
+0000)
committer
Cameron Zwarich
<zwarich@apple.com>
Sat, 23 Feb 2013 04:49:22 +0000
(
04:49
+0000)
running ASCI_Purple/SMG2000 in the test-suite.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175957
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/TwoAddressInstructionPass.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/TwoAddressInstructionPass.cpp
b/lib/CodeGen/TwoAddressInstructionPass.cpp
index cbe07db3fcbd64d34bbb35d50c9c5bd96c02cd60..aca85b2aa17daefc081eb31fa2fdd15d4cb5067e 100644
(file)
--- a/
lib/CodeGen/TwoAddressInstructionPass.cpp
+++ b/
lib/CodeGen/TwoAddressInstructionPass.cpp
@@
-370,7
+370,7
@@
static bool isPlainlyKilled(MachineInstr *MI, unsigned Reg,
SlotIndex useIdx = LIS->getInstructionIndex(MI);
LiveInterval::const_iterator I = LI.find(useIdx);
assert(I != LI.end() && "Reg must be live-in to use.");
- return SlotIndex::isSameInstr(I->end, useIdx);
+ return
!I->end.isBlock() &&
SlotIndex::isSameInstr(I->end, useIdx);
}
return MI->killsRegister(Reg);