No need to recompute the SrcReg and CmpValue.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113666 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Bill Wendling
2010-09-10 23:46:12 +00:00
parent 92ad57f066
commit 3665661a57
4 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -244,7 +244,7 @@ bool PeepholeOptimizer::OptimizeCmpInstr(MachineInstr *MI,
return false;
// Attempt to convert the defining instruction to set the "zero" flag.
if (TII->ConvertToSetZeroFlag(MI, NextIter)) {
if (TII->ConvertToSetZeroFlag(MI, SrcReg, CmpValue, NextIter)) {
++NumEliminated;
return true;
}