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

via llvm-commits llvm-commits at lists.llvm.org
Sat Oct 26 07:53:05 PDT 2024


Author: Alex Rønne Petersen
Date: 2024-10-26T16:53:01+02:00
New Revision: 0df70c28d25aedbedbb4c89f2c03a0e10ec0e8f4

URL: https://github.com/llvm/llvm-project/commit/0df70c28d25aedbedbb4c89f2c03a0e10ec0e8f4
DIFF: https://github.com/llvm/llvm-project/commit/0df70c28d25aedbedbb4c89f2c03a0e10ec0e8f4.diff

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

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

Added: 
    

Modified: 
    llvm/lib/Target/SystemZ/SystemZFrameLowering.cpp

Removed: 
    


################################################################################
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());
 }
 


        


More information about the llvm-commits mailing list