summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2010-09-11 00:13:50 +0000
committerBill Wendling <isanbard@gmail.com>2010-09-11 00:13:50 +0000
commit27dddd1fd1de6cc55e7447a559bf193c7300d293 (patch)
treef1cd2e88f4494bf6a020dd7a2d77bfeed035a6ad /llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp
parenta4601b64962e5ff24350bc9f33bab9c4574d6d6b (diff)
downloadbcm5719-llvm-27dddd1fd1de6cc55e7447a559bf193c7300d293.tar.gz
bcm5719-llvm-27dddd1fd1de6cc55e7447a559bf193c7300d293.zip
Rename ConvertToSetZeroFlag to something more general.
llvm-svn: 113670
Diffstat (limited to 'llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp')
-rw-r--r--llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp b/llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp
index d79905a80b9..39feec99890 100644
--- a/llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp
+++ b/llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp
@@ -1377,11 +1377,11 @@ AnalyzeCompare(const MachineInstr *MI, unsigned &SrcReg, int &CmpValue) const {
return false;
}
-/// ConvertToSetZeroFlag - Convert the instruction supplying the argument to the
+/// OptimizeCompareInstr - Convert the instruction supplying the argument to the
/// comparison into one that sets the zero bit in the flags register. Update the
/// iterator *only* if a transformation took place.
bool ARMBaseInstrInfo::
-ConvertToSetZeroFlag(MachineInstr *CmpInstr, unsigned SrcReg, int CmpValue,
+OptimizeCompareInstr(MachineInstr *CmpInstr, unsigned SrcReg, int CmpValue,
MachineBasicBlock::iterator &MII) const {
if (CmpValue != 0)
return false;
OpenPOWER on IntegriCloud