[llvm] [ARM] Fix -mno-omit-leaf-frame-pointer flag doesn't works on 32-bit ARM (PR #109628)

via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 10 06:53:12 PDT 2024


================
@@ -22,10 +22,6 @@ using namespace llvm;
 /// DisableFramePointerElim - This returns true if frame pointer elimination
 /// optimization should be disabled for the given machine function.
 bool TargetOptions::DisableFramePointerElim(const MachineFunction &MF) const {
-  // Check to see if the target want to forcibly keep frame pointer.
-  if (MF.getSubtarget().getFrameLowering()->keepFramePointer(MF))
----------------
guoxin049 wrote:

Excuse me, Please check the code again, thank you. @efriedma-quic 

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


More information about the llvm-commits mailing list