mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-08 20:30:50 +00:00
Add a FIXME explaining the move to a single indirect call bonus per function
that we can change from indirect to direct. llvm-svn: 124045
This commit is contained in:
parent
5da99702ec
commit
ee9652eceb
@ -189,6 +189,11 @@ unsigned CodeMetrics::CountBonusForConstant(Value *V) {
|
||||
}
|
||||
}
|
||||
|
||||
// FIXME: The only reason we're applying the bonus once is while it's great
|
||||
// to devirtualize calls the magnitude of the bonus x number of call sites
|
||||
// can lead to a huge code explosion when we prefer to inline 1000 instruction
|
||||
// functions that have 10 call sites. This should be made a function of the
|
||||
// estimated inline penalty/benefit + the indirect call bonus.
|
||||
if (indirectCallBonus) Bonus += InlineConstants::IndirectCallBonus;
|
||||
|
||||
return Bonus;
|
||||
|
Loading…
Reference in New Issue
Block a user