diff options
author | Bill Wendling <isanbard@gmail.com> | 2010-09-11 00:13:50 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2010-09-11 00:13:50 +0000 |
commit | 27dddd1fd1de6cc55e7447a559bf193c7300d293 (patch) | |
tree | f1cd2e88f4494bf6a020dd7a2d77bfeed035a6ad /llvm/lib/CodeGen/PeepholeOptimizer.cpp | |
parent | a4601b64962e5ff24350bc9f33bab9c4574d6d6b (diff) | |
download | bcm5719-llvm-27dddd1fd1de6cc55e7447a559bf193c7300d293.tar.gz bcm5719-llvm-27dddd1fd1de6cc55e7447a559bf193c7300d293.zip |
Rename ConvertToSetZeroFlag to something more general.
llvm-svn: 113670
Diffstat (limited to 'llvm/lib/CodeGen/PeepholeOptimizer.cpp')
-rw-r--r-- | llvm/lib/CodeGen/PeepholeOptimizer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/PeepholeOptimizer.cpp b/llvm/lib/CodeGen/PeepholeOptimizer.cpp index 529f994f003..15ede91a38e 100644 --- a/llvm/lib/CodeGen/PeepholeOptimizer.cpp +++ b/llvm/lib/CodeGen/PeepholeOptimizer.cpp @@ -243,8 +243,8 @@ bool PeepholeOptimizer::OptimizeCmpInstr(MachineInstr *MI, TargetRegisterInfo::isPhysicalRegister(SrcReg)) return false; - // Attempt to convert the defining instruction to set the "zero" flag. - if (TII->ConvertToSetZeroFlag(MI, SrcReg, CmpValue, NextIter)) { + // Attempt to optimize the comparison instruction. + if (TII->OptimizeCompareInstr(MI, SrcReg, CmpValue, NextIter)) { ++NumEliminated; return true; } |