diff options
author | Evan Cheng <evan.cheng@apple.com> | 2012-01-07 02:55:54 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2012-01-07 02:55:54 +0000 |
commit | 501e3095e8c3790ac0c8cd76fb883d5337dfdc5b (patch) | |
tree | ceb2c838795ff0614e30d45e1e21ac19e1098f02 /llvm/lib/Target/ARM/Thumb1FrameLowering.cpp | |
parent | 126a2ef9204832020067036c3a5596413244acf4 (diff) | |
download | bcm5719-llvm-501e3095e8c3790ac0c8cd76fb883d5337dfdc5b.tar.gz bcm5719-llvm-501e3095e8c3790ac0c8cd76fb883d5337dfdc5b.zip |
Copy implicit defs (e.g. r0) when changing tBX_RET to tPOP_RET. This bug is
exposed with an upcoming change will would delete the copy to return register
because there is no use! It's amazing anything works.
llvm-svn: 147715
Diffstat (limited to 'llvm/lib/Target/ARM/Thumb1FrameLowering.cpp')
-rw-r--r-- | llvm/lib/Target/ARM/Thumb1FrameLowering.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Target/ARM/Thumb1FrameLowering.cpp b/llvm/lib/Target/ARM/Thumb1FrameLowering.cpp index e171b274deb..16c7cbc4a0d 100644 --- a/llvm/lib/Target/ARM/Thumb1FrameLowering.cpp +++ b/llvm/lib/Target/ARM/Thumb1FrameLowering.cpp @@ -350,6 +350,7 @@ restoreCalleeSavedRegisters(MachineBasicBlock &MBB, continue; Reg = ARM::PC; (*MIB).setDesc(TII.get(ARM::tPOP_RET)); + MIB->copyImplicitOps(&*MI); MI = MBB.erase(MI); } MIB.addReg(Reg, getDefRegState(true)); |