diff options
author | Gabor Greif <ggreif@gmail.com> | 2010-09-21 12:01:15 +0000 |
---|---|---|
committer | Gabor Greif <ggreif@gmail.com> | 2010-09-21 12:01:15 +0000 |
commit | 04ac81d5db058a3a9492e1aff1f398a8643bfda9 (patch) | |
tree | 80588f5e23bfc4ea96c578ea35591176d215e405 /lib/Target/ARM/ARMBaseInstrInfo.h | |
parent | b4c7a12aeae6283916c6e03a9bd625e54ffbeafd (diff) | |
download | external_llvm-04ac81d5db058a3a9492e1aff1f398a8643bfda9.zip external_llvm-04ac81d5db058a3a9492e1aff1f398a8643bfda9.tar.gz external_llvm-04ac81d5db058a3a9492e1aff1f398a8643bfda9.tar.bz2 |
Move the search for the appropriate AND instruction
into OptimizeCompareInstr.
This necessitates the passing of CmpValue around,
so widen the virtual functions to accomodate.
No functionality changes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114428 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMBaseInstrInfo.h')
-rw-r--r-- | lib/Target/ARM/ARMBaseInstrInfo.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/ARM/ARMBaseInstrInfo.h b/lib/Target/ARM/ARMBaseInstrInfo.h index 75f1859..c4af703 100644 --- a/lib/Target/ARM/ARMBaseInstrInfo.h +++ b/lib/Target/ARM/ARMBaseInstrInfo.h @@ -326,12 +326,12 @@ public: /// in SrcReg and the value it compares against in CmpValue. Return true if /// the comparison instruction can be analyzed. virtual bool AnalyzeCompare(const MachineInstr *MI, unsigned &SrcReg, - int &CmpValue) const; + int &CmpMask, int &CmpValue) const; /// OptimizeCompareInstr - Convert the instruction to set the zero flag so /// that we can remove a "comparison with zero". virtual bool OptimizeCompareInstr(MachineInstr *CmpInstr, unsigned SrcReg, - int CmpValue, + int CmpMask, int CmpValue, MachineBasicBlock::iterator &MII) const; virtual unsigned getNumMicroOps(const MachineInstr *MI, |