diff options
author | Cameron Zwarich <zwarich@apple.com> | 2013-02-23 04:49:22 +0000 |
---|---|---|
committer | Cameron Zwarich <zwarich@apple.com> | 2013-02-23 04:49:22 +0000 |
commit | 4e80d9e853b15e4386d921fb889b1ce8769cc27f (patch) | |
tree | 97f9dc8e9fde9b4de5ecc6c12fa6fe6eb0231276 /llvm/lib/CodeGen | |
parent | 35c3050e7af8c30200d083c7344536854f2e4f1d (diff) | |
download | bcm5719-llvm-4e80d9e853b15e4386d921fb889b1ce8769cc27f.tar.gz bcm5719-llvm-4e80d9e853b15e4386d921fb889b1ce8769cc27f.zip |
Fix a bug with the LiveIntervals updating in the two-address pass found by
running ASCI_Purple/SMG2000 in the test-suite.
llvm-svn: 175957
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/TwoAddressInstructionPass.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp b/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp index cbe07db3fcb..aca85b2aa17 100644 --- a/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp +++ b/llvm/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); |