mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +00:00
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:
@@ -1381,11 +1381,9 @@ AnalyzeCompare(const MachineInstr *MI, unsigned &SrcReg, int &CmpValue) const {
|
||||
/// 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,
|
||||
ConvertToSetZeroFlag(MachineInstr *CmpInstr, unsigned SrcReg, int CmpValue,
|
||||
MachineBasicBlock::iterator &MII) const {
|
||||
unsigned SrcReg;
|
||||
int CmpValue;
|
||||
if (!AnalyzeCompare(CmpInstr, SrcReg, CmpValue) || CmpValue != 0)
|
||||
if (CmpValue != 0)
|
||||
return false;
|
||||
|
||||
MachineRegisterInfo &MRI = CmpInstr->getParent()->getParent()->getRegInfo();
|
||||
|
Reference in New Issue
Block a user