mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-17 21:35:07 +00:00
Revert r119109 for now. It's breaking 176.gcc.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119492 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d261dc650a
commit
baa45f7298
@ -1555,14 +1555,6 @@ ARMPreAllocLoadStoreOpt::CanFormLdStDWord(MachineInstr *Op0, MachineInstr *Op1,
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
static MachineMemOperand *CopyMMO(const MachineMemOperand *MMO,
|
|
||||||
unsigned NewSize, MachineFunction *MF) {
|
|
||||||
return MF->getMachineMemOperand(MachinePointerInfo(MMO->getValue(),
|
|
||||||
MMO->getOffset()),
|
|
||||||
MMO->getFlags(), NewSize,
|
|
||||||
MMO->getAlignment(), MMO->getTBAAInfo());
|
|
||||||
}
|
|
||||||
|
|
||||||
bool ARMPreAllocLoadStoreOpt::RescheduleOps(MachineBasicBlock *MBB,
|
bool ARMPreAllocLoadStoreOpt::RescheduleOps(MachineBasicBlock *MBB,
|
||||||
SmallVector<MachineInstr*, 4> &Ops,
|
SmallVector<MachineInstr*, 4> &Ops,
|
||||||
unsigned Base, bool isLd,
|
unsigned Base, bool isLd,
|
||||||
@ -1670,11 +1662,6 @@ bool ARMPreAllocLoadStoreOpt::RescheduleOps(MachineBasicBlock *MBB,
|
|||||||
if (!isT2)
|
if (!isT2)
|
||||||
MIB.addReg(0);
|
MIB.addReg(0);
|
||||||
MIB.addImm(Offset).addImm(Pred).addReg(PredReg);
|
MIB.addImm(Offset).addImm(Pred).addReg(PredReg);
|
||||||
|
|
||||||
// Copy memoperands bug change size to 8.
|
|
||||||
for (MachineInstr::mmo_iterator mmo = Op0->memoperands_begin();
|
|
||||||
mmo != Op0->memoperands_end(); ++mmo)
|
|
||||||
MIB.addMemOperand(CopyMMO(*mmo, 8, MF));
|
|
||||||
++NumLDRDFormed;
|
++NumLDRDFormed;
|
||||||
} else {
|
} else {
|
||||||
MachineInstrBuilder MIB = BuildMI(*MBB, InsertPos,
|
MachineInstrBuilder MIB = BuildMI(*MBB, InsertPos,
|
||||||
@ -1688,10 +1675,6 @@ bool ARMPreAllocLoadStoreOpt::RescheduleOps(MachineBasicBlock *MBB,
|
|||||||
if (!isT2)
|
if (!isT2)
|
||||||
MIB.addReg(0);
|
MIB.addReg(0);
|
||||||
MIB.addImm(Offset).addImm(Pred).addReg(PredReg);
|
MIB.addImm(Offset).addImm(Pred).addReg(PredReg);
|
||||||
// Copy memoperands bug change size to 8.
|
|
||||||
for (MachineInstr::mmo_iterator mmo = Op0->memoperands_begin();
|
|
||||||
mmo != Op0->memoperands_end(); ++mmo)
|
|
||||||
MIB.addMemOperand(CopyMMO(*mmo, 8, MF));
|
|
||||||
++NumSTRDFormed;
|
++NumSTRDFormed;
|
||||||
}
|
}
|
||||||
MBB->erase(Op0);
|
MBB->erase(Op0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user