diff options
author | Bill Wendling <isanbard@gmail.com> | 2010-09-10 23:46:12 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2010-09-10 23:46:12 +0000 |
commit | 3665661a5708c8adc2727be38b56d1d87ddeb661 (patch) | |
tree | 950e2818cdb04156591a728b71d31ea9f79b8425 /lib/CodeGen/PeepholeOptimizer.cpp | |
parent | 92ad57f066e9f256e4e3d72febf152e68caa80c7 (diff) |
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
Diffstat (limited to 'lib/CodeGen/PeepholeOptimizer.cpp')
-rw-r--r-- | lib/CodeGen/PeepholeOptimizer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/PeepholeOptimizer.cpp b/lib/CodeGen/PeepholeOptimizer.cpp index 7a1bf4050d..529f994f00 100644 --- a/lib/CodeGen/PeepholeOptimizer.cpp +++ b/lib/CodeGen/PeepholeOptimizer.cpp @@ -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; } |