llvm-project/llvm/test/LTO/X86
David Bolvansky c0aa4b75a4 Enrich inline messages
Summary:
This patch improves Inliner to provide causes/reasons for negative inline decisions.
1. It adds one new message field to InlineCost to report causes for Always and Never instances. All Never and Always instantiations must provide a simple message.
2. Several functions that used to return the inlining results as boolean are changed to return InlineResult which carries the cause for negative decision.
3. Changed remark priniting and debug output messages to provide the additional messages and related inline cost.
4. Adjusted tests for changed printing.

Patch by: yrouban (Yevgeny Rouban)


Reviewers: craig.topper, sammccall, sgraenitz, NutshellySima, shchenz, chandlerc, apilipenko, javed.absar, tejohnson, dblaikie, sanjoy, eraman, xbolva00

Reviewed By: tejohnson, xbolva00

Subscribers: xbolva00, llvm-commits, arsenm, mehdi_amini, eraman, haicheng, steven_wu, dexonsmith

Differential Revision: https://reviews.llvm.org/D49412

llvm-svn: 338969
2018-08-05 14:53:08 +00:00
..
Inputs [LTO] Handle __imp_ (dllimport) symbols consistently with lld 2018-07-23 22:33:57 +00:00
attrs.ll
bcsection.ll
cfi_endproc.ll
current-section.ll
diagnostic-handler-noexit.ll
diagnostic-handler-remarks-with-hotness.ll Enrich inline messages 2018-08-05 14:53:08 +00:00
diagnostic-handler-remarks.ll Enrich inline messages 2018-08-05 14:53:08 +00:00
disable-verify.ll
dllimport.ll [LTO] Handle __imp_ (dllimport) symbols consistently with lld 2018-07-23 22:33:57 +00:00
invalid.ll
keep-used-puts-during-instcombine.ll
linkonce_odr_func.ll
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 [LTO] Don't internalize declarations 2018-07-27 05:40:29 +00:00
private-symbol.ll
remangle_intrinsics.ll Add triples or specify REQUIRES: default_triple to some tests 2018-01-27 23:31:09 +00:00
remangle_intrinsics_tbaa.ll
restore-externals.ll
runtime-library.ll
set-merged.ll
stdcall.ll
strip-debug-info-no-call-loc.ll [DebugInfo] Add DILabel metadata and intrinsic llvm.dbg.label. 2018-05-09 02:40:45 +00:00
strip-debug-info.ll Move the stripping of invalid debug info from the Verifier to AutoUpgrade. 2017-10-02 18:31:29 +00:00
symver-asm.ll [LLVMgold] Don't set undefined symbol as prevailing 2017-12-15 09:18:21 +00:00
symver-asm2.ll
symver-asm3.ll Object: Don't mark alias unconditionally defined 2018-04-10 00:53:16 +00:00
triple-init.ll [ThinLTO] Ensure the TargetLibraryInfo is constructed early enough 2018-07-23 21:58:19 +00:00
triple-init2.ll [ThinLTO] Ensure the TargetLibraryInfo is constructed early enough 2018-07-23 21:58:19 +00:00
type-mapping-bug.ll Canonicalize the representation of empty an expression in DIGlobalVariableExpression 2017-08-30 18:06:51 +00:00
type-mapping-bug2.ll IRMover: Account for matching types present across modules 2018-06-20 16:50:56 +00:00
unnamed.ll