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

Phoebe Wang via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 18 23:51:45 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() &&
----------------
phoebewang wrote:

Why checking `hasInlineAsm`?

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


More information about the llvm-commits mailing list