[llvm] [X86] Refine speed up checking clobbered FP/BP to make IPRA work. (PR #109246)

Freddy Ye via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 18 23:55:33 PDT 2024


================
@@ -4567,7 +4570,9 @@ void X86FrameLowering::spillFPBP(MachineFunction &MF) const {
 
       // If the bp is clobbered by a call, we should save and restore outside of
       // the frame setup instructions.
-      if (KillMI->isCall() && DefMI != ME) {
+      // When IPRA is enabled, we could skip this step.
+      if (KillMI->isCall() && DefMI != ME && !MF.hasInlineAsm() &&
----------------
FreddyLeaf wrote:

[1143462](https://github.com/llvm/llvm-project/pull/109246/commits/1143462a9861c755d8db674a665c51fc35f0db4e)

https://github.com/llvm/llvm-project/pull/109246


More information about the llvm-commits mailing list