diff options
author | Eric Christopher <echristo@gmail.com> | 2014-04-14 22:21:22 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2014-04-14 22:21:22 +0000 |
commit | b45b4814f6ea5b5a3a120f45793cc44c12bac974 (patch) | |
tree | a9545efefd5de6f11e818a91f8553bf46a87b5b1 | |
parent | 4f5212a60e776da7f99f14b1df5b68baace80e29 (diff) | |
download | llvm-b45b4814f6ea5b5a3a120f45793cc44c12bac974.zip llvm-b45b4814f6ea5b5a3a120f45793cc44c12bac974.tar.gz llvm-b45b4814f6ea5b5a3a120f45793cc44c12bac974.tar.bz2 |
Use FrameSetup on frame instructions for the Mips port.
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.
llvm-svn: 206218
-rw-r--r-- | llvm/lib/Target/Mips/Mips16FrameLowering.cpp | 2 | ||||
-rw-r--r-- | llvm/lib/Target/Mips/MipsSEFrameLowering.cpp | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/Target/Mips/Mips16FrameLowering.cpp b/llvm/lib/Target/Mips/Mips16FrameLowering.cpp index 028b049..c01d03a 100644 --- a/llvm/lib/Target/Mips/Mips16FrameLowering.cpp +++ b/llvm/lib/Target/Mips/Mips16FrameLowering.cpp @@ -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); } diff --git a/llvm/lib/Target/Mips/MipsSEFrameLowering.cpp b/llvm/lib/Target/Mips/MipsSEFrameLowering.cpp index 0343a47..6ad5821 100644 --- a/llvm/lib/Target/Mips/MipsSEFrameLowering.cpp +++ b/llvm/lib/Target/Mips/MipsSEFrameLowering.cpp @@ -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( |