llvm-project/llvm/test/LTO/Resolution/X86
Fedor Sergeev 1a3dc76186 [InlineCost] cleanup calculations of Cost and Threshold
Summary:
Doing better separation of Cost and Threshold.
Cost counts the abstract complexity of live instructions, while Threshold is an upper bound of complexity that inlining is comfortable to pay.
There are two parts:
     - huge 15K last-call-to-static bonus is no longer subtracted from Cost
       but rather is now added to Threshold.

       That makes much more sense, as the cost of inlining (Cost) is not changed by the fact
       that internal function is called once. It only changes the likelyhood of this inlining
       being profitable (Threshold).

     - bonus for calls proved-to-be-inlinable into callee is no longer subtracted from Cost
       but added to Threshold instead.

While calculations are somewhat different,  overall InlineResult should stay the same since Cost >= Threshold compares the same.

Reviewers: eraman, greened, chandlerc, yrouban, apilipenko
Reviewed By: apilipenko
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D60740

llvm-svn: 364422
2019-06-26 13:24:24 +00:00
..
Inputs [Linker] Fix crash handling appending linkage 2019-03-20 19:20:07 +00:00
alias-alias.ll
alias.ll
appending-var.ll [Linker] Fix crash handling appending linkage 2019-03-20 19:20:07 +00:00
asm-output.ll
available-externally.ll LTO: Don't internalize available_externally globals. 2018-12-05 00:09:36 +00:00
cache-dso-local.ll
cache-dso-local2.ll
cache-prevailing.ll [ThinLTO] Keep non-prevailing (linkonce|weak)_odr symbols live 2018-10-08 15:12:48 +00:00
comdat-mixed-lto.ll
comdat.ll
common2.ll
commons.ll
dead-strip-alias.ll
dead-strip-fulllto.ll [LTO] Drop non-prevailing definitions only if linkage is not local or appending 2018-11-08 20:10:07 +00:00
diagnostic-handler-remarks-with-hotness.ll [InlineCost] cleanup calculations of Cost and Threshold 2019-06-26 13:24:24 +00:00
diagnostic-handler-remarks.ll [InlineCost] cleanup calculations of Cost and Threshold 2019-06-26 13:24:24 +00:00
empty-bitcode.test
export-jumptable.ll [LTO] Record whether LTOUnit splitting is enabled in index 2019-01-11 18:31:57 +00:00
function-alias-non-prevailing.ll
ifunc.ll
intrinsic.ll
link-odr-availextern.ll
linker-redef-thin.ll [llvm-readobj] Change -t to --symbols in tests. NFC 2019-05-01 09:28:24 +00:00
linker-redef.ll [llvm-readobj] Change -t to --symbols in tests. NFC 2019-05-01 09:28:24 +00:00
linkonce.ll
lit.local.cfg
load-sample-prof-icp.ll
load-sample-prof-lto.ll [LTO] Load sample profile in LTO link step. 2018-11-15 18:06:42 +00:00
load-sample-prof.ll
local-def-dllimport.ll [LTO] Record whether LTOUnit splitting is enabled in index 2019-01-11 18:31:57 +00:00
lowertypetests.ll [LTO] Record whether LTOUnit splitting is enabled in index 2019-01-11 18:31:57 +00:00
lto-unit-check.ll [LTO] Record whether LTOUnit splitting is enabled in index 2019-01-11 18:31:57 +00:00
mixed_lto.ll
mod-asm-used.ll
multi-thinlto.ll
not-prevailing-alias.ll
not-prevailing-variables.ll
not-prevailing.ll
setting-dso-local.ll
symtab-elf.ll [ELF] Implement Dependent Libraries Feature 2019-05-17 03:44:15 +00:00
symtab.ll
type-checked-load.ll