mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-23 14:25:07 +00:00
Move some of the decision logic for converting an instruction into one that sets
the 'zero' bit down into the back-end. There are other cases where this logic isn't sufficient, so they should be handled separately. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113665 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -585,11 +585,10 @@ public:
|
||||
return false;
|
||||
}
|
||||
|
||||
/// ConvertToSetZeroFlag - Convert the instruction to set the zero flag so
|
||||
/// that we can remove a "comparison with zero". Update the iterator *only*
|
||||
/// if a transformation took place.
|
||||
virtual bool ConvertToSetZeroFlag(MachineInstr * /*Instr*/,
|
||||
MachineInstr * /*CmpInstr*/,
|
||||
/// ConvertToSetZeroFlag - 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.
|
||||
virtual bool ConvertToSetZeroFlag(MachineInstr * /*CmpInstr*/,
|
||||
MachineBasicBlock::iterator &) const {
|
||||
return false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user