aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-10-13 20:10:10 +0000
committerDan Gohman <gohman@apple.com>2009-10-13 20:10:10 +0000
commit9cb17acf4c2d135199764894ec788fff8f0864b5 (patch)
treefdf8e9e7331826666d39c4db091c24b8afb4152a /lib
parent41c6d59aec5f3cebb414f951bb2c948aab984778 (diff)
downloadexternal_llvm-9cb17acf4c2d135199764894ec788fff8f0864b5.zip
external_llvm-9cb17acf4c2d135199764894ec788fff8f0864b5.tar.gz
external_llvm-9cb17acf4c2d135199764894ec788fff8f0864b5.tar.bz2
Compute a full cost value even when a setjmp call is found.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84015 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Analysis/InlineCost.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/Analysis/InlineCost.cpp b/lib/Analysis/InlineCost.cpp
index 4cbe0b0..3b0d2c9 100644
--- 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.