mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
Compute a full cost value even when a setjmp call is found.
llvm-svn: 84015
This commit is contained in:
parent
665e336185
commit
c1e210fa10
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user