diff options
author | Dan Gohman <gohman@apple.com> | 2009-10-13 20:10:10 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-10-13 20:10:10 +0000 |
commit | abb728d3f40e628cf7c0e9e7f620ddb7c7fad4f7 (patch) | |
tree | 4bd9eee53532cddb95c9a3adb05c507f4a3a2ad7 /llvm/lib | |
parent | 2ccea5d13fc8d4d0b974c9c60724d47839a72c2e (diff) | |
download | bcm5719-llvm-abb728d3f40e628cf7c0e9e7f620ddb7c7fad4f7.tar.gz bcm5719-llvm-abb728d3f40e628cf7c0e9e7f620ddb7c7fad4f7.zip |
Compute a full cost value even when a setjmp call is found.
llvm-svn: 84015
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Analysis/InlineCost.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/Analysis/InlineCost.cpp b/llvm/lib/Analysis/InlineCost.cpp index 4cbe0b0eaa1..3b0d2c90aeb 100644 --- a/llvm/lib/Analysis/InlineCost.cpp +++ b/llvm/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. |