llvm-project/llvm/test/LTO/Resolution/X86
Wei Mi 7a6c89427c [SampleFDO] Add use-sample-profile function attribute.
When sampleFDO is enabled, people may expect they can use
-fno-profile-sample-use to opt-out using sample profile for a certain file.
That could be either for debugging purpose or for performance tuning purpose.
However, when thinlto is enabled, if a function in file A compiled with
-fno-profile-sample-use is imported to another file B compiled with
-fprofile-sample-use, the inlined copy of the function in file B may still
get its profile annotated.

The inconsistency may even introduce profile unused warning because if the
target is not compiled with explicit debug information flag, the function
in file A won't have its debug information enabled (debug information will
be enabled implicitly only when -fprofile-sample-use is used). After it is
imported into file B which is compiled with -fprofile-sample-use, profile
annotation for the outline copy of the function will fail because the
function has no debug information, and that will trigger  profile unused
warning.

We add a new attribute use-sample-profile to control whether a function
will use its sample profile no matter for its outline or inline copies.
That will make the behavior of -fno-profile-sample-use consistent.

Differential Revision: https://reviews.llvm.org/D79959
2020-06-02 17:23:17 -07:00
..
Inputs
alias-alias.ll
alias.ll
appending-var.ll
asm-output.ll [llvm-objdump] -d: print `00000000 <foo>:` instead of `00000000 foo:` 2020-03-05 18:05:28 -08:00
available-externally.ll
cache-dso-local.ll
cache-dso-local2.ll
cache-prevailing.ll
comdat-mixed-lto.ll
comdat.ll
common2.ll
commons.ll
dead-strip-alias.ll
dead-strip-fulllto.ll
diagnostic-handler-remarks-with-hotness.ll
diagnostic-handler-remarks.ll
empty-bitcode.test
export-jumptable.ll
function-alias-non-prevailing.ll
ifunc.ll
ifunc2.ll
intrinsic.ll
link-odr-availextern.ll
linker-redef-thin.ll
linker-redef.ll
linkonce.ll
lit.local.cfg
load-sample-prof-icp.ll [SampleFDO] Add use-sample-profile function attribute. 2020-06-02 17:23:17 -07:00
load-sample-prof-lto.ll [SampleFDO] Add use-sample-profile function attribute. 2020-06-02 17:23:17 -07:00
load-sample-prof.ll [SampleFDO] Add use-sample-profile function attribute. 2020-06-02 17:23:17 -07:00
local-def-dllimport.ll [ThinLTO] Drop dso_local if a GlobalVariable satisfies isDeclarationForLinker() 2020-04-07 15:46:01 -07:00
lowertypetests.ll
lto-unit-check.ll
mixed_lto.ll
mod-asm-used.ll
multi-thinlto.ll
not-prevailing-alias.ll [llvm-objdump] -d: print `00000000 <foo>:` instead of `00000000 foo:` 2020-03-05 18:05:28 -08:00
not-prevailing-variables.ll ThinLTOBitcodeWriter: drop dso_local when a GlobalVariable is converted to a declaration 2020-03-05 18:09:33 -08:00
not-prevailing-weak-aliasee.ll
not-prevailing.ll [X86InstPrinter] Change printPCRelImm to print the target address in hexadecimal form 2020-03-26 08:28:59 -07:00
setting-dso-local.ll
symtab-elf.ll
symtab.ll
type-checked-load.ll