projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Revert r216066, "Optimize ZERO_EXTEND and SIGN_EXTEND in both SelectionDAG Builder...
[oota-llvm.git]
/
lib
/
CodeGen
/
TargetOptionsImpl.cpp
diff --git
a/lib/CodeGen/TargetOptionsImpl.cpp
b/lib/CodeGen/TargetOptionsImpl.cpp
index 7a39a4c27374c9e8180c969860c43b9b8d6791f3..3ca2017550cf2c3e61a74ea4dd31a85b220dfc72 100644
(file)
--- a/
lib/CodeGen/TargetOptionsImpl.cpp
+++ b/
lib/CodeGen/TargetOptionsImpl.cpp
@@
-12,8
+12,8
@@
//===----------------------------------------------------------------------===//
#include "llvm/IR/Function.h"
//===----------------------------------------------------------------------===//
#include "llvm/IR/Function.h"
-#include "llvm/CodeGen/MachineFunction.h"
#include "llvm/CodeGen/MachineFrameInfo.h"
#include "llvm/CodeGen/MachineFrameInfo.h"
+#include "llvm/CodeGen/MachineFunction.h"
#include "llvm/Target/TargetOptions.h"
using namespace llvm;
#include "llvm/Target/TargetOptions.h"
using namespace llvm;
@@
-22,10
+22,8
@@
using namespace llvm;
bool TargetOptions::DisableFramePointerElim(const MachineFunction &MF) const {
// Check to see if we should eliminate non-leaf frame pointers and then
// check to see if we should eliminate all frame pointers.
bool TargetOptions::DisableFramePointerElim(const MachineFunction &MF) const {
// Check to see if we should eliminate non-leaf frame pointers and then
// check to see if we should eliminate all frame pointers.
- bool NoFramePointerElimNonLeaf =
- MF.getFunction()->getFnAttribute("no-frame-pointer-elim-non-leaf")
- .getValueAsString() == "true";
- if (NoFramePointerElimNonLeaf && !NoFramePointerElim) {
+ if (MF.getFunction()->hasFnAttribute("no-frame-pointer-elim-non-leaf") &&
+ !NoFramePointerElim) {
const MachineFrameInfo *MFI = MF.getFrameInfo();
return MFI->hasCalls();
}
const MachineFrameInfo *MFI = MF.getFrameInfo();
return MFI->hasCalls();
}