diff options
author | Bill Wendling <isanbard@gmail.com> | 2010-05-18 21:47:08 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2010-05-18 21:47:08 +0000 |
commit | 4ed63f8687923e1a6c05500078d644f659a8b29b (patch) | |
tree | a868240dcbdc3d2904e33138233982be6b9f1cce /llvm/lib/Target/TargetMachine.cpp | |
parent | 887dd1cd319647af0fe54fa1dd3654896ce83f59 (diff) | |
download | bcm5719-llvm-4ed63f8687923e1a6c05500078d644f659a8b29b.tar.gz bcm5719-llvm-4ed63f8687923e1a6c05500078d644f659a8b29b.zip |
Don't eliminate frame pointers from leaf functions if "--disable-fp-elim" is
specified.
llvm-svn: 104066
Diffstat (limited to 'llvm/lib/Target/TargetMachine.cpp')
-rw-r--r-- | llvm/lib/Target/TargetMachine.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/TargetMachine.cpp b/llvm/lib/Target/TargetMachine.cpp index 199119850b2..b947b786a4f 100644 --- a/llvm/lib/Target/TargetMachine.cpp +++ b/llvm/lib/Target/TargetMachine.cpp @@ -275,7 +275,7 @@ namespace llvm { bool DisableFramePointerElim(const MachineFunction &MF) { // Check to see if we should eliminate non-leaf frame pointers and then // check to see if we should eliminate all frame pointers. - if (NoFramePointerElimNonLeaf) { + if (NoFramePointerElimNonLeaf && !NoFramePointerElim) { const MachineFrameInfo *MFI = MF.getFrameInfo(); return MFI->hasCalls(); } |