diff --git a/llvm/lib/Target/XCore/XCoreInstrInfo.cpp b/llvm/lib/Target/XCore/XCoreInstrInfo.cpp index 4e44abdecd29..545a2852dc9c 100644 --- a/llvm/lib/Target/XCore/XCoreInstrInfo.cpp +++ b/llvm/lib/Target/XCore/XCoreInstrInfo.cpp @@ -363,7 +363,7 @@ bool XCoreInstrInfo::copyRegToReg(MachineBasicBlock &MBB, if (SrcRC == XCore::RRegsRegisterClass && SrcReg == XCore::SP && DestRC == XCore::GRRegsRegisterClass) { - BuildMI(MBB, I, get(XCore::LDAWSP_ru6), DestReg).addImm(0).addImm(0); + BuildMI(MBB, I, get(XCore::LDAWSP_ru6), DestReg).addImm(0); return true; } if (DestRC == XCore::RRegsRegisterClass && DestReg == XCore::SP && diff --git a/llvm/lib/Target/XCore/XCoreRegisterInfo.cpp b/llvm/lib/Target/XCore/XCoreRegisterInfo.cpp index d40404e2fe97..d93dad83a8c1 100644 --- a/llvm/lib/Target/XCore/XCoreRegisterInfo.cpp +++ b/llvm/lib/Target/XCore/XCoreRegisterInfo.cpp @@ -481,7 +481,6 @@ void XCoreRegisterInfo::emitPrologue(MachineFunction &MF) const { // Set the FP from the SP. unsigned FramePtr = XCore::R10; BuildMI(MBB, MBBI, TII.get(XCore::LDAWSP_ru6), FramePtr) - .addImm(0) .addImm(0); if (emitFrameMoves) { // Show FP is now valid.