summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/dosep.py
diff options
context:
space:
mode:
authorEaswaran Raman <eraman@google.com>2015-12-07 21:21:20 +0000
committerEaswaran Raman <eraman@google.com>2015-12-07 21:21:20 +0000
commit6d90d9f102c6a401e84b92506b2ab011c5c72362 (patch)
tree64748ef6ffc759f2b7dbb6b9ba8a3afab11e7647 /lldb/packages/Python/lldbsuite/test/dosep.py
parent1f1a15332b99bfaf2c6ae0fa702762a15b840d17 (diff)
downloadbcm5719-llvm-6d90d9f102c6a401e84b92506b2ab011c5c72362.tar.gz
bcm5719-llvm-6d90d9f102c6a401e84b92506b2ab011c5c72362.zip
Use updated threshold for indirect call bonus
When considering foo->bar inlining, if there is an indirect call in foo which gets resolved to a direct call (say baz), then we try to inline baz into bar with a threshold T and subtract max(T - Cost(bar->baz), 0) from Cost(foo->bar). This patch uses max(Threshold(bar->baz) - Cost(bar->baz)) instead, where Thresheld(bar->baz) could be different from T due to bonuses or subtractions. Threshold(bar->baz) - Cost(bar->baz) better represents the desirability of inlining baz into bar. Differential Revision: http://reviews.llvm.org/D14309 llvm-svn: 254945
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/dosep.py')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud