Use FrameSetup on frame instructions for the Mips port.
authorEric Christopher <echristo@gmail.com>
Mon, 14 Apr 2014 22:21:22 +0000 (22:21 +0000)
committerEric Christopher <echristo@gmail.com>
Mon, 14 Apr 2014 22:21:22 +0000 (22:21 +0000)
I can't seem to get a testcase to show a difference here, but it's
part of the unconditional-br.ll line table weirdness.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206218 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/Mips/Mips16FrameLowering.cpp
lib/Target/Mips/MipsSEFrameLowering.cpp

index 028b049f9a3147947cff6c51961317bb45a0dd7a..c01d03a1ddf6d8bb13f8b4dfa4984da0d5c4cb3a 100644 (file)
@@ -71,7 +71,7 @@ void Mips16FrameLowering::emitPrologue(MachineFunction &MF) const {
   }
   if (hasFP(MF))
     BuildMI(MBB, MBBI, dl, TII.get(Mips::MoveR3216), Mips::S0)
-      .addReg(Mips::SP);
+      .addReg(Mips::SP).setMIFlag(MachineInstr::FrameSetup);
 
 }
 
index 0343a4764f796a87f250121de437b74562352b45..6ad5821571d774f467dbb518298bcc62a6e00838 100644 (file)
@@ -375,7 +375,8 @@ void MipsSEFrameLowering::emitPrologue(MachineFunction &MF) const {
   // if framepointer enabled, set it to point to the stack pointer.
   if (hasFP(MF)) {
     // Insert instruction "move $fp, $sp" at this location.
-    BuildMI(MBB, MBBI, dl, TII.get(ADDu), FP).addReg(SP).addReg(ZERO);
+    BuildMI(MBB, MBBI, dl, TII.get(ADDu), FP).addReg(SP).addReg(ZERO)
+      .setMIFlag(MachineInstr::FrameSetup);
 
     // emit ".cfi_def_cfa_register $fp"
     unsigned CFIIndex = MMI.addFrameInst(MCCFIInstruction::createDefCfaRegister(