[llvm] [llvm][SystemZ] Remove some leftover code from #106014. NFC. (PR #113761)

via llvm-commits llvm-commits at lists.llvm.org
Sat Oct 26 06:34:03 PDT 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-backend-systemz

Author: Alex Rønne Petersen (alexrp)

<details>
<summary>Changes</summary>

Pointed out by @<!-- -->redstar here: https://github.com/llvm/llvm-project/pull/106014/files#r1816845388

---
Full diff: https://github.com/llvm/llvm-project/pull/113761.diff


1 Files Affected:

- (modified) llvm/lib/Target/SystemZ/SystemZFrameLowering.cpp (-5) 


``````````diff
diff --git a/llvm/lib/Target/SystemZ/SystemZFrameLowering.cpp b/llvm/lib/Target/SystemZ/SystemZFrameLowering.cpp
index 8fbd05eab5f6ee..f2fa7e7c9f9fee 100644
--- a/llvm/lib/Target/SystemZ/SystemZFrameLowering.cpp
+++ b/llvm/lib/Target/SystemZ/SystemZFrameLowering.cpp
@@ -1450,11 +1450,6 @@ void SystemZXPLINKFrameLowering::inlineStackProbe(
 }
 
 bool SystemZXPLINKFrameLowering::hasFPImpl(const MachineFunction &MF) const {
-  // Naked functions have no stack frame pushed, so we don't have a frame
-  // pointer.
-  if (MF.getFunction().hasFnAttribute(Attribute::Naked))
-    return false;
-
   return (MF.getFrameInfo().hasVarSizedObjects());
 }
 

``````````

</details>


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


More information about the llvm-commits mailing list