llvm-project/llvm/test/LTO/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 [ThinLTO]LTO]Legacy] Fix dependent libraries support by adding querying of the IRSymtab 2019-06-12 11:07:56 +00:00
attrs.ll
bcsection.ll
cfi_endproc.ll
codemodel-1.ll Pass code-model through Module IR to LTO which will use it. 2018-09-21 18:41:31 +00:00
codemodel-2.ll Pass code-model through Module IR to LTO which will use it. 2018-09-21 18:41:31 +00:00
codemodel-3.ll Pass code-model through Module IR to LTO which will use it. 2018-09-21 18:41:31 +00:00
current-section.ll
diagnostic-handler-noexit.ll
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
disable-verify.ll
dllimport.ll
internalize.ll [ThinLTO] Add an option to disable (thin)lto internalization. 2018-11-05 15:49:46 +00:00
invalid.ll
keep-used-puts-during-instcombine.ll
libcall-overridden-via-alias.ll Update test of r344198 to work with release builds. 2018-10-11 20:19:25 +00:00
linkonce_odr_func.ll
list-dependent-libraries.ll [ThinLTO]LTO]Legacy] Fix dependent libraries support by adding querying of the IRSymtab 2019-06-12 11:07:56 +00:00
list-symbols.ll
lit.local.cfg
llvm-lto-output.ll
no-undefined-puts-when-implemented.ll
objc-detection-i386.ll
objc-detection.ll
parallel.ll
pr25919.ll
pr38046.ll
private-symbol.ll
remangle_intrinsics.ll IR: Add immarg attribute 2019-03-12 21:02:54 +00:00
remangle_intrinsics_tbaa.ll
restore-externals.ll
runtime-library.ll [llvm-nm][llvm-readelf] Avoid single-dash -long-option in tests 2019-04-27 16:12:14 +00:00
set-merged.ll
stdcall.ll
strip-debug-info-no-call-loc.ll
strip-debug-info.ll
symver-asm.ll
symver-asm2.ll
symver-asm3.ll
tailcallelim.ll Resubmit r356511 "[TailCallElim] Add tailcall elimination pass to LTO pipelines" 2019-03-20 19:08:18 +00:00
triple-init.ll
triple-init2.ll
type-mapping-bug.ll
type-mapping-bug2.ll
unnamed.ll