forked from OSchip/llvm-project
Revert previous change; even this mild and clearly
more accurate change loses more than it gains on benchmarks. llvm-svn: 62938
This commit is contained in:
parent
887ce84b2b
commit
2b3389a626
|
@ -119,14 +119,11 @@ void InlineCostAnalyzer::FunctionInfo::analyzeFunction(Function *F) {
|
|||
NeverInline = true;
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
// Calls often compile into many machine instructions. Bump up their
|
||||
// cost to reflect this. Allow an extra instruction per parameter.
|
||||
if (!isa<IntrinsicInst>(II)) {
|
||||
for (CallSite::arg_iterator I = CS.arg_begin(), E = CS.arg_end();
|
||||
I != E; ++I)
|
||||
NumInsts ++;
|
||||
}
|
||||
// cost to reflect this.
|
||||
if (!isa<IntrinsicInst>(II))
|
||||
NumInsts += 5;
|
||||
}
|
||||
|
||||
if (const AllocaInst *AI = dyn_cast<AllocaInst>(II)) {
|
||||
|
|
Loading…
Reference in New Issue