mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 02:52:53 +02:00
Add inlining threshold to log output.
llvm-svn: 98024
This commit is contained in:
parent
3d0157ae7e
commit
5b150ee899
@ -219,8 +219,10 @@ bool Inliner::shouldInline(CallSite CS) {
|
||||
Function *Caller = CS.getCaller();
|
||||
int CurrentThreshold = getInlineThreshold(CS);
|
||||
float FudgeFactor = getInlineFudgeFactor(CS);
|
||||
if (Cost >= (int)(CurrentThreshold * FudgeFactor)) {
|
||||
int AdjThreshold = (int)(CurrentThreshold * FudgeFactor);
|
||||
if (Cost >= AdjThreshold) {
|
||||
DEBUG(dbgs() << " NOT Inlining: cost=" << Cost
|
||||
<< ", thres=" << AdjThreshold
|
||||
<< ", Call: " << *CS.getInstruction() << "\n");
|
||||
return false;
|
||||
}
|
||||
@ -285,6 +287,7 @@ bool Inliner::shouldInline(CallSite CS) {
|
||||
}
|
||||
|
||||
DEBUG(dbgs() << " Inlining: cost=" << Cost
|
||||
<< ", thres=" << AdjThreshold
|
||||
<< ", Call: " << *CS.getInstruction() << '\n');
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user