Compute a full cost value even when a setjmp call is found.

llvm-svn: 84015
This commit is contained in:
Dan Gohman 2009-10-13 20:10:10 +00:00
parent 2ccea5d13f
commit abb728d3f4
1 changed files with 1 additions and 3 deletions

View File

@ -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.