llvm-project/llvm/test
Wei Mi a23f62343c Supplement instr profile with sample profile.
PGO profile is usually more precise than sample profile. However, PGO profile
needs to be collected from loadtest and loadtest may not be representative
enough to the production workload. Sample profile collected from production
can be used as a supplement -- for functions cold in loadtest but warm/hot
in production, we can scale up the related function in PGO profile if the
function is warm or hot in sample profile.

The implementation contains changes in compiler side and llvm-profdata side.
Given an instr profile and a sample profile, for a function cold in PGO
profile but warm/hot in sample profile, llvm-profdata will either mark
all the counters in the profile to be -1 or scale up the max count in the
function to be above hot threshold, depending on the zero counter ratio in
the profile. The assumption is if there are too many counters being zero
in the function profile, the profile is more likely to cause harm than good,
then llvm-profdata will mark all the counters to be -1 indicating the
function is hot but the profile is unaccountable. In compiler side, if a
function profile with all -1 counters is seen, the function entry count will
be set to be above hot threshold but its internal profile will be dropped.

In the long run, it may be useful to let compiler support using PGO profile
and sample profile at the same time, but that requires more careful design
and more substantial changes to make two profiles work seamlessly. The patch
here serves as a simple intermediate solution.

Differential Revision: https://reviews.llvm.org/D81981
2020-07-27 20:17:40 -07:00
..
Analysis Revert "[PowerPC] Remove QPX/A2Q BGQ/BGP CNK support" 2020-07-27 21:07:00 +00:00
Assembler [ThinLTO] parse flags and blockcount summaries 2020-07-20 09:50:22 -07:00
Bindings [llvm] Development-mode InlineAdvisor 2020-07-20 11:01:56 -07:00
Bitcode [Bitcode] Avoid duplicating linker option when upgrading 2020-07-23 13:07:28 -07:00
BugPoint
CodeGen GlobalISel: Don't fail translate on intrinsics with metadata 2020-07-27 19:00:25 -04:00
DebugInfo Revert "Re-apply:" Emit DW_OP_implicit_value for Floating point constants"" 2020-07-27 09:44:13 -05:00
Demangle
Examples
ExecutionEngine [jitlink] Updating test file for GOT relocations for elf x86 2020-07-21 17:19:48 +10:00
Feature [NewPM] Support optnone under new pass manager 2020-07-21 09:53:43 -07:00
FileCheck [FileCheck] Implement -dump-input-filter 2020-07-10 11:02:11 -04:00
Instrumentation Revert "[PowerPC] Remove QPX/A2Q BGQ/BGP CNK support" 2020-07-27 21:07:00 +00:00
Integer
JitListener
LTO
Linker
MC Revert "[PowerPC] Remove QPX/A2Q BGQ/BGP CNK support" 2020-07-27 21:07:00 +00:00
MachineVerifier GlobalISel: Verify G_BITCAST changes the type 2020-07-08 17:16:27 -04:00
Object [llvm-readobj] - Don't get the name of the symbol table in ELFDumper<ELFT>::printSymbolsHelper. 2020-07-22 17:28:20 +03:00
ObjectYAML [DWARFYAML] Use yaml::Hex64 rather than uint64_t as length. NFC. 2020-07-22 10:20:01 +08:00
Other [Matrix] Add minimal lowering pass that only requires TTI. 2020-07-20 11:16:11 +01:00
Reduce [Reduce] Argument reduction: shoe-horn new function into remaining uses of old function 2020-07-27 15:39:03 +03:00
SafepointIRVerifier
Support
SymbolRewriter
TableGen TableGen/GlobalISel: Allow output instructions with multiple defs 2020-07-27 18:31:13 -04:00
ThinLTO/X86 Restore "[WPD/LowerTypeTests] Delay lowering/removal of type tests until after ICP" 2020-07-14 12:16:57 -07:00
Transforms Supplement instr profile with sample profile. 2020-07-27 20:17:40 -07:00
Unit
Verifier Verifier: Check byref address space for AMDGPU calling conventions 2020-07-20 11:13:11 -04:00
YAMLParser
tools Supplement instr profile with sample profile. 2020-07-27 20:17:40 -07:00
.clang-format
CMakeLists.txt [CMake] Simplify CMake handling for zlib 2020-07-23 23:05:36 -07:00
TestRunner.sh
lit.cfg.py Add test utility 'extract' 2020-07-23 19:15:35 -07:00
lit.site.cfg.py.in [CMake] Simplify CMake handling for zlib 2020-07-23 23:05:36 -07:00