projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e7f0ed5
)
Compute a full cost value even when a setjmp call is found.
author
Dan Gohman
<gohman@apple.com>
Tue, 13 Oct 2009 20:10:10 +0000
(20:10 +0000)
committer
Dan Gohman
<gohman@apple.com>
Tue, 13 Oct 2009 20:10:10 +0000
(20:10 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84015
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Analysis/InlineCost.cpp
patch
|
blob
|
history
diff --git
a/lib/Analysis/InlineCost.cpp
b/lib/Analysis/InlineCost.cpp
index 4cbe0b0eaa1b12e0a3eebac7e92992cbafad7adb..3b0d2c90aeb5fd74084f955171627d1ca8944230 100644
(file)
--- a/
lib/Analysis/InlineCost.cpp
+++ b/
lib/Analysis/InlineCost.cpp
@@
-121,10
+121,8
@@
void CodeMetrics::analyzeBasicBlock(const BasicBlock *BB) {
// probably won't do this in callers.
if (Function *F = CS.getCalledFunction())
if (F->isDeclaration() &&
- (F->getName() == "setjmp" || F->getName() == "_setjmp"))
{
+ (F->getName() == "setjmp" || F->getName() == "_setjmp"))
NeverInline = true;
- return;
- }
// Calls often compile into many machine instructions. Bump up their
// cost to reflect this.