diff options
author | Tim Northover <Tim.Northover@arm.com> | 2013-04-20 19:31:00 +0000 |
---|---|---|
committer | Tim Northover <Tim.Northover@arm.com> | 2013-04-20 19:31:00 +0000 |
commit | 335dd0d1a60b317dd5fed7016e6b29af5d509828 (patch) | |
tree | 16d03035e19454e0ac10a3f19a4ad276c9d6102d /lib/Target/ARM/ARMBaseInstrInfo.cpp | |
parent | bf9fba961b4cf8fec7fc5d77cc14580ba5feafa2 (diff) | |
download | llvm-335dd0d1a60b317dd5fed7016e6b29af5d509828.tar.gz llvm-335dd0d1a60b317dd5fed7016e6b29af5d509828.tar.bz2 llvm-335dd0d1a60b317dd5fed7016e6b29af5d509828.tar.xz |
ARM: don't add FrameIndex offset for LDMIA (has no immediate)
Previously, when spilling 64-bit paired registers, an LDMIA with both
a FrameIndex and an offset was produced. This kind of instruction
shouldn't exist, and the extra operand was being confused with the
predicate, causing aborts later on.
This removes the invalid 0-offset from the instruction being
produced.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179956 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMBaseInstrInfo.cpp')
-rw-r--r-- | lib/Target/ARM/ARMBaseInstrInfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/ARM/ARMBaseInstrInfo.cpp b/lib/Target/ARM/ARMBaseInstrInfo.cpp index 9e68ff4489..7a8077e3f9 100644 --- a/lib/Target/ARM/ARMBaseInstrInfo.cpp +++ b/lib/Target/ARM/ARMBaseInstrInfo.cpp @@ -978,7 +978,7 @@ loadRegFromStackSlot(MachineBasicBlock &MBB, MachineBasicBlock::iterator I, unsigned LdmOpc = AFI->isThumbFunction() ? ARM::t2LDMIA : ARM::LDMIA; MachineInstrBuilder MIB = AddDefaultPred(BuildMI(MBB, I, DL, get(LdmOpc)) - .addFrameIndex(FI).addImm(0).addMemOperand(MMO)); + .addFrameIndex(FI).addMemOperand(MMO)); MIB = AddDReg(MIB, DestReg, ARM::gsub_0, RegState::DefineNoRead, TRI); MIB = AddDReg(MIB, DestReg, ARM::gsub_1, RegState::DefineNoRead, TRI); if (TargetRegisterInfo::isPhysicalRegister(DestReg)) |