[llvm-commits] [llvm] r83653 - /llvm/trunk/lib/CodeGen/PrologEpilogInserter.cpp
Jim Grosbach
grosbach at apple.com
Fri Oct 9 10:33:33 PDT 2009
Author: grosbach
Date: Fri Oct 9 12:33:33 2009
New Revision: 83653
URL: http://llvm.org/viewvc/llvm-project?rev=83653&view=rev
Log:
when previous scratch register is killed, flag the value as no longer tracking
Modified:
llvm/trunk/lib/CodeGen/PrologEpilogInserter.cpp
Modified: llvm/trunk/lib/CodeGen/PrologEpilogInserter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/PrologEpilogInserter.cpp?rev=83653&r1=83652&r2=83653&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/PrologEpilogInserter.cpp (original)
+++ llvm/trunk/lib/CodeGen/PrologEpilogInserter.cpp Fri Oct 9 12:33:33 2009
@@ -797,10 +797,13 @@
if (Reg == PrevScratchReg) {
if (MO.isUse()) {
// Two-address operands implicitly kill
- if (MO.isKill() || MI->isRegTiedToDefOperand(i))
+ if (MO.isKill() || MI->isRegTiedToDefOperand(i)) {
+ havePrevValue = false;
PrevScratchReg = 0;
+ }
} else {
assert (MO.isDef());
+ havePrevValue = false;
PrevScratchReg = 0;
}
}
More information about the llvm-commits
mailing list