llvm-project/llvm/test/tools/llvm-profgen
Wenlei He eca03d2768 [CSSPGO] Track and use context-sensitive post-optimization function size to drive global pre-inliner in llvm-profgen
This change enables llvm-profgen to use accurate context-sensitive post-optimization function byte size as a cost proxy to drive global preinline decisions.

To do this, BinarySizeContextTracker is introduced to track function byte size under different inline context during disassembling. In preinliner, we can not query context byte size under switch `context-cost-for-preinliner`. The tracker uses a reverse trie to keep size of functions under different context (callee as parent, caller as child), and it can give best/longest possible matching context size for given input context.

The new size cost is off by default. There're a few TODOs that needs to addressed: 1) avoid dangling string from `Offset2LocStackMap`, which will be addressed in split context work; 2) using inlinee's entry probe to make sure we have correct zero size for inlinee that's completely optimized away after inlining. Some tuning is also needed.

Differential Revision: https://reviews.llvm.org/D108180
2021-08-18 22:50:57 -07:00
..
Inputs [CSSPGO] Track and use context-sensitive post-optimization function size to drive global pre-inliner in llvm-profgen 2021-08-18 22:50:57 -07:00
cs-extbinary.test [CSSPGO][llvm-profgen] Change default cold threshold for context merging 2021-05-25 10:41:10 -07:00
cs-interrupt.test [CSSPGO][llvm-profgen] Ignore LBR records after interrupt transition 2021-06-18 12:13:53 -07:00
cs-preinline-cost.test [CSSPGO] Track and use context-sensitive post-optimization function size to drive global pre-inliner in llvm-profgen 2021-08-18 22:50:57 -07:00
cs-preinline.test [CSSPGO][llvm-profgen] Make extended binary the default output format 2021-06-03 17:58:16 -07:00
disassemble.test [CSSPGO][llvm-profgen] Allow multiple executable load segments. 2021-07-13 18:22:24 -07:00
fname-canonicalization.test [CSSPGO] Undoing the concept of dangling pseudo probe 2021-06-18 15:14:11 -07:00
help.test [llvm][tools] Hide more unrelated LLVM tool options 2021-07-21 09:14:04 +02:00
inline-cs-noprobe.test [CSSPGO][llvm-profgen] Make extended binary the default output format 2021-06-03 17:58:16 -07:00
inline-cs-pseudoprobe.test [CSSPGO] Undoing the concept of dangling pseudo probe 2021-06-18 15:14:11 -07:00
invalid-perfscript.test [CSSPGO][llvm-profgen] Renovate perfscript check and command line input validation 2021-02-12 15:18:50 -08:00
lit.local.cfg [llvm-profgen] A couple tweaks to the testing harness. 2021-04-22 08:57:14 -07:00
merge-cold-profile.test [CSSPGO][llvm-profgen] Trim and merge context beforehand to reduce memory usage 2021-08-11 16:02:35 -07:00
mmapEvent.test [CSSPGO][llvm-profgen] Allow multiple executable load segments. 2021-07-13 18:22:24 -07:00
multi-load-segs.test [CSSPGO][llvm-profgen] Allow multiple executable load segments. 2021-07-13 18:22:24 -07:00
noinline-cs-noprobe.test [llvm-profgen][CSSPGO] Support count based aggregated type of hybrid perf script 2021-08-03 17:56:35 -07:00
noinline-cs-pseudoprobe.test [llvm-profgen][CSSPGO] Support count based aggregated type of hybrid perf script 2021-08-03 17:56:35 -07:00
pseudoprobe-decoding.test [CSSPGO] Undoing the concept of dangling pseudo probe 2021-06-18 15:14:11 -07:00
recursion-compression-noprobe.test [CSSPGO][llvm-profgen] Trim and merge context beforehand to reduce memory usage 2021-08-11 16:02:35 -07:00
recursion-compression-pseudoprobe.test [CSSPGO][llvm-profgen] Trim and merge context beforehand to reduce memory usage 2021-08-11 16:02:35 -07:00
symbolize.test [CSSPGO][llvm-profgen] Allow multiple executable load segments. 2021-07-13 18:22:24 -07:00
truncated-pseudoprobe.test [CSSPGO] Report zero-count probe in profile instead of dangling probes. 2021-06-16 11:45:29 -07:00