mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +00:00
Refactor the ARM CMPz* patterns to just use the normal CMP instructions when
possible. They were duplicates for everything exception the source pattern before. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121179 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1648,7 +1648,7 @@ bool ARMConstantIslands::OptimizeThumb2Branches(MachineFunction &MF) {
|
||||
unsigned DestOffset = BBOffsets[DestBB->getNumber()];
|
||||
if (BrOffset < DestOffset && (DestOffset - BrOffset) <= 126) {
|
||||
MachineBasicBlock::iterator CmpMI = Br.MI; --CmpMI;
|
||||
if (CmpMI->getOpcode() == ARM::tCMPzi8) {
|
||||
if (CmpMI->getOpcode() == ARM::tCMPi8) {
|
||||
unsigned Reg = CmpMI->getOperand(0).getReg();
|
||||
Pred = llvm::getInstrPredicate(CmpMI, PredReg);
|
||||
if (Pred == ARMCC::AL &&
|
||||
|
Reference in New Issue
Block a user