diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2009-05-16 07:26:06 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2009-05-16 07:26:06 +0000 |
commit | b5426457f04fbcc3e4d25d40e19f1806d89560ec (patch) | |
tree | 32ea8a3de8da91963c2426422e656b7fd914b7ff /lib | |
parent | f2c3f6a8556b6275f1084b9f8c130452a7f5eb9d (diff) | |
download | external_llvm-b5426457f04fbcc3e4d25d40e19f1806d89560ec.zip external_llvm-b5426457f04fbcc3e4d25d40e19f1806d89560ec.tar.gz external_llvm-b5426457f04fbcc3e4d25d40e19f1806d89560ec.tar.bz2 |
Fix a missing def-flag on a Mips epilogue load.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71935 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Target/Mips/MipsRegisterInfo.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Target/Mips/MipsRegisterInfo.cpp b/lib/Target/Mips/MipsRegisterInfo.cpp index 115bb92..579d4db 100644 --- a/lib/Target/Mips/MipsRegisterInfo.cpp +++ b/lib/Target/Mips/MipsRegisterInfo.cpp @@ -473,15 +473,15 @@ emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const .addReg(Mips::FP).addReg(Mips::ZERO); // lw $fp,stack_loc($sp) - BuildMI(MBB, MBBI, dl, TII.get(Mips::LW)) - .addReg(Mips::FP).addImm(FPOffset).addReg(Mips::SP); + BuildMI(MBB, MBBI, dl, TII.get(Mips::LW), Mips::FP) + .addImm(FPOffset).addReg(Mips::SP); } // Restore the return address only if the function isnt a leaf one. // lw $ra, stack_loc($sp) if (MFI->hasCalls()) { - BuildMI(MBB, MBBI, dl, TII.get(Mips::LW)) - .addReg(Mips::RA).addImm(RAOffset).addReg(Mips::SP); + BuildMI(MBB, MBBI, dl, TII.get(Mips::LW), Mips::RA) + .addImm(RAOffset).addReg(Mips::SP); } // adjust stack : insert addi sp, sp, (imm) |