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

Alex Rønne Petersen via llvm-commits llvm-commits at lists.llvm.org
Sat Oct 26 06:33:29 PDT 2024


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

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

>From b1a79a5b50e2f0a95e2613be63e494877e293b7f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Alex=20R=C3=B8nne=20Petersen?= <alex at alexrp.com>
Date: Sat, 26 Oct 2024 15:31:08 +0200
Subject: [PATCH] [llvm][SystemZ] Remove some leftover code from #106014. NFC.

Pointed out by Kai Nacke here: https://github.com/llvm/llvm-project/pull/106014/files#r1816845388
---
 llvm/lib/Target/SystemZ/SystemZFrameLowering.cpp | 5 -----
 1 file changed, 5 deletions(-)

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