summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/TargetOptionsImpl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/CodeGen/TargetOptionsImpl.cpp')
-rw-r--r--llvm/lib/CodeGen/TargetOptionsImpl.cpp14
1 files changed, 1 insertions, 13 deletions
diff --git a/llvm/lib/CodeGen/TargetOptionsImpl.cpp b/llvm/lib/CodeGen/TargetOptionsImpl.cpp
index 039748d817c..d794a261ecb 100644
--- a/llvm/lib/CodeGen/TargetOptionsImpl.cpp
+++ b/llvm/lib/CodeGen/TargetOptionsImpl.cpp
@@ -28,20 +28,8 @@ bool TargetOptions::DisableFramePointerElim(const MachineFunction &MF) const {
const Function &F = MF.getFunction();
- // TODO: Remove support for old `fp elim` function attributes after fully
- // migrate to use "frame-pointer"
- if (!F.hasFnAttribute("frame-pointer")) {
- // Check to see if we should eliminate all frame pointers.
- if (F.getFnAttribute("no-frame-pointer-elim").getValueAsString() == "true")
- return true;
-
- // Check to see if we should eliminate non-leaf frame pointers.
- if (F.hasFnAttribute("no-frame-pointer-elim-non-leaf"))
- return MF.getFrameInfo().hasCalls();
-
+ if (!F.hasFnAttribute("frame-pointer"))
return false;
- }
-
StringRef FP = F.getFnAttribute("frame-pointer").getValueAsString();
if (FP == "all")
return true;
OpenPOWER on IntegriCloud