1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00

Disable shrink-wrap for Thumb1

Summary: In ARMConstantIslandPass, which runs after Shrink Wrap pass, long jumps will be fixed up as BL (tBfar) which depends on spilling LR in epilogue.  However, shrink-wrap may remove the LR, which causes issues when the function returns.

Reviewers: qcolombet, rengolin

Subscribers: aemerson, rengolin

Differential Revision: http://reviews.llvm.org/D15984

llvm-svn: 257187
This commit is contained in:
Weiming Zhao 2016-01-08 18:37:43 +00:00
parent 251ea8cd28
commit d25e3c1837

View File

@ -53,6 +53,11 @@ public:
/// \p MBB will be correctly handled by the target.
bool canUseAsEpilogue(const MachineBasicBlock &MBB) const override;
/// Disable shrink wrap as tBfar/BL will be used to adjust for long jumps.
bool enableShrinkWrapping(const MachineFunction &MF) const override {
return false;
}
private:
/// Check if the frame lowering of \p MF needs a special fixup
/// code sequence for the epilogue.