mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-25 16:29:20 +00:00
Add safety check that didn't show up in testing.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128467 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
da6eed3cfe
commit
9eae80051b
@ -350,6 +350,7 @@ ARMLoadStoreOpt::MergeOps(MachineBasicBlock &MBB,
|
||||
bool isDef = (isi32Load(Opcode) || Opcode == ARM::VLDRS ||
|
||||
Opcode == ARM::VLDRD);
|
||||
Opcode = getLoadStoreMultipleOpcode(Opcode, Mode);
|
||||
if (!Opcode) return false;
|
||||
MachineInstrBuilder MIB = BuildMI(MBB, MBBI, dl, TII->get(Opcode))
|
||||
.addReg(Base, getKillRegState(BaseKill))
|
||||
.addImm(Pred).addReg(PredReg);
|
||||
|
Loading…
Reference in New Issue
Block a user