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; } _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits