Disable shrink-wrap for Thumb1
[oota-llvm.git] / lib / Target / ARM / Thumb1FrameLowering.h
index 812f9830824de99a61909be5f6d357a7fc6cf485..27faac63683a7769f6780245a62ed8fcfc1e9949 100644 (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.