[llvm-commits] CVS: llvm/lib/CodeGen/PHIElimination.cpp
Chris Lattner
lattner at cs.uiuc.edu
Fri Aug 11 22:41:55 PDT 2006
Changes in directory llvm/lib/CodeGen:
PHIElimination.cpp updated: 1.43 -> 1.44
---
Log message:
Fix an obvious bug, noticed by inspection. No current targets trigger this.
---
Diffs of the changes: (+3 -3)
PHIElimination.cpp | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
Index: llvm/lib/CodeGen/PHIElimination.cpp
diff -u llvm/lib/CodeGen/PHIElimination.cpp:1.43 llvm/lib/CodeGen/PHIElimination.cpp:1.44
--- llvm/lib/CodeGen/PHIElimination.cpp:1.43 Thu Jul 20 12:28:38 2006
+++ llvm/lib/CodeGen/PHIElimination.cpp Sat Aug 12 00:41:39 2006
@@ -103,9 +103,9 @@
/// use of the specified register.
static bool InstructionUsesRegister(MachineInstr *MI, unsigned SrcReg) {
for (unsigned i = 0, e = MI->getNumOperands(); i != e; ++i)
- if (MI->getOperand(0).isRegister() &&
- MI->getOperand(0).getReg() == SrcReg &&
- MI->getOperand(0).isUse())
+ if (MI->getOperand(i).isRegister() &&
+ MI->getOperand(i).getReg() == SrcReg &&
+ MI->getOperand(i).isUse())
return true;
return false;
}
More information about the llvm-commits
mailing list