[llvm-commits] [llvm] r84015 - /llvm/trunk/lib/Analysis/InlineCost.cpp
Dan Gohman
gohman at apple.com
Tue Oct 13 13:10:11 PDT 2009
Author: djg
Date: Tue Oct 13 15:10:10 2009
New Revision: 84015
URL: http://llvm.org/viewvc/llvm-project?rev=84015&view=rev
Log:
Compute a full cost value even when a setjmp call is found.
Modified:
llvm/trunk/lib/Analysis/InlineCost.cpp
Modified: llvm/trunk/lib/Analysis/InlineCost.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/InlineCost.cpp?rev=84015&r1=84014&r2=84015&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/InlineCost.cpp (original)
+++ llvm/trunk/lib/Analysis/InlineCost.cpp Tue Oct 13 15:10:10 2009
@@ -121,10 +121,8 @@
// 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.
More information about the llvm-commits
mailing list