mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-04 22:07:27 +00:00
34afa06cf2
model the dense vector instruction bonuses. Previously, this code really didn't effectively compute the density of inlined vector instructions and apply the intended inliner bonus. It would try to compute it repeatedly while analyzing the function and didn't handle the case where future vector instructions would tip the scales back towards the bonus. Instead, speculatively apply all possible bonuses to the threshold initially. Once we *know* that a certain bonus can not be applied, subtract it. This should delay early bailout enough to get much more consistent results without actually causing us to analyze huge swaths of code. I expect some (hopefully mild) compile time hit here, and some swings in performance, but this was definitely the intended behavior of these bonuses. This also dramatically simplifies the computation of the bonuses to not interact with each other in confusing ways. The previous code didn't do a good job of this and the values for bonuses may be surprising but are at least now clearly written in the code. Finally, fix code to be in line with comments and use zero as the bailout condition. Patch by Easwaran Raman, with some comment tweaks by me to try and further clarify what is going on with this code. http://reviews.llvm.org/D8267 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@238276 91177308-0d34-0410-b5e6-96231b3b80d8 |
||
---|---|---|
.. | ||
2003-09-14-InlineValue.ll | ||
2003-09-22-PHINodeInlineFail.ll | ||
2003-09-22-PHINodesInExceptionDest.ll | ||
2003-09-22-PHINodesInNormalInvokeDest.ll | ||
2003-10-13-AllocaDominanceProblem.ll | ||
2004-04-15-InlineDeletesCall.ll | ||
2004-04-20-InlineLinkOnce.ll | ||
2004-10-17-InlineFunctionWithoutReturn.ll | ||
2006-01-14-CallGraphUpdate.ll | ||
2006-07-12-InlinePruneCGUpdate.ll | ||
2006-11-09-InlineCGUpdate-2.ll | ||
2006-11-09-InlineCGUpdate.ll | ||
2007-04-15-InlineEH.ll | ||
2007-06-25-WeakInline.ll | ||
2007-12-19-InlineNoUnwind.ll | ||
2008-09-02-NoInline.ll | ||
2009-01-08-NoInlineDynamicAlloca.ll | ||
2009-01-13-RecursiveInlineCrash.ll | ||
2009-05-07-CallUsingSelfCrash.ll | ||
2010-05-12-ValueMap.ll | ||
align.ll | ||
alloca_test.ll | ||
alloca-bonus.ll | ||
alloca-dbgdeclare.ll | ||
alloca-in-scc.ll | ||
alloca-merge-align.ll | ||
always-inline.ll | ||
array_merge.ll | ||
attributes.ll | ||
basictest.ll | ||
blockaddress.ll | ||
byval_lifetime.ll | ||
byval-tail-call.ll | ||
byval.ll | ||
callgraph-update.ll | ||
casts.ll | ||
cfg_preserve_test.ll | ||
crash2.ll | ||
crash-lifetime-marker.ll | ||
crash.ll | ||
debug-info-duplicate-calls.ll | ||
debug-invoke.ll | ||
delete-call.ll | ||
devirtualize-2.ll | ||
devirtualize-3.ll | ||
devirtualize.ll | ||
dynamic_alloca_test.ll | ||
ephemeral.ll | ||
externally_available.ll | ||
frameescape.ll | ||
gvn-inline-iteration.ll | ||
ignore-debug-info.ll | ||
inline_cleanup.ll | ||
inline_constprop.ll | ||
inline_dbg_declare.ll | ||
inline_dce.ll | ||
inline_invoke.ll | ||
inline_minisize.ll | ||
inline_prune.ll | ||
inline_returns_twice.ll | ||
inline_ssp.ll | ||
inline-byval-bonus.ll | ||
inline-cold.ll | ||
inline-fast-math-flags.ll | ||
inline-fp.ll | ||
inline-indirect.ll | ||
inline-invoke-tail.ll | ||
inline-invoke-with-asm-call.ll | ||
inline-musttail-varargs.ll | ||
inline-optnone.ll | ||
inline-optsize.ll | ||
inline-tail.ll | ||
inline-vla.ll | ||
invoke_test-1.ll | ||
invoke_test-2.ll | ||
invoke_test-3.ll | ||
invoke-cleanup.ll | ||
invoke-combine-clauses.ll | ||
invoke-cost.ll | ||
lifetime-no-datalayout.ll | ||
lifetime.ll | ||
nested-inline.ll | ||
noalias2.ll | ||
noalias-calls.ll | ||
noalias-cs.ll | ||
noalias.ll | ||
noinline-recursive-fn.ll | ||
noinline.ll | ||
null-function.ll | ||
optimization-remarks.ll | ||
pr21206.ll | ||
pr22285.ll | ||
PR4909.ll | ||
ptr-diff.ll | ||
recursive.ll | ||
store-sroa.ll | ||
switch.ll | ||
vector-bonus.ll |