llvm-project/llvm/test/tools/llvm-profgen/Inputs
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
..
cs-interrupt.perfscript [CSSPGO][llvm-profgen] Ignore LBR records after interrupt transition 2021-06-18 12:13:53 -07:00
cs-preinline-cost.perfbin [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-cost.perfscript [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
inline-cs-noprobe.perfbin
inline-cs-noprobe.perfscript [CSSPGO][llvm-profgen] Fix bug with parsing hybrid sample trace line 2021-02-04 16:15:05 -08:00
inline-cs-pseudoprobe.perfbin [CSSPGO] Undoing the concept of dangling pseudo probe 2021-06-18 15:14:11 -07:00
inline-cs-pseudoprobe.perfscript [CSSPGO][llvm-profgen] Virtual unwinding with pseudo probe 2021-01-13 11:02:58 -08:00
multi-load-segs.perfbin [CSSPGO][llvm-profgen] Allow multiple executable load segments. 2021-07-13 18:22:24 -07:00
multi-load-segs.perfscript [CSSPGO][llvm-profgen] Allow multiple executable load segments. 2021-07-13 18:22:24 -07:00
noinline-cs-noprobe.aggperfscript [llvm-profgen][CSSPGO] Support count based aggregated type of hybrid perf script 2021-08-03 17:56:35 -07:00
noinline-cs-noprobe.perfbin
noinline-cs-noprobe.perfscript [CSSPGO][llvm-profgen] Virtual unwinding with pseudo probe 2021-01-13 11:02:58 -08:00
noinline-cs-pseudoprobe.aggperfscript [llvm-profgen][CSSPGO] Support count based aggregated type of hybrid perf script 2021-08-03 17:56:35 -07:00
noinline-cs-pseudoprobe.perfbin [CSSPGO] Undoing the concept of dangling pseudo probe 2021-06-18 15:14:11 -07:00
noinline-cs-pseudoprobe.perfscript [CSSPGO][llvm-profgen] Virtual unwinding with pseudo probe 2021-01-13 11:02:58 -08:00
recursion-compression-noprobe.perfbin [CSSPGO][llvm-profgen] Compress recursive cycles in calling context 2021-02-03 22:16:07 -08:00
recursion-compression-noprobe.perfscript [CSSPGO][llvm-profgen] Compress recursive cycles in calling context 2021-02-03 22:16:07 -08:00
recursion-compression-pseudoprobe-nommap.perfscript [llvm-profgen] Support perf script without parsing MMap events 2021-08-03 10:01:07 -07:00
recursion-compression-pseudoprobe.perfbin [CSSPGO] Undoing the concept of dangling pseudo probe 2021-06-18 15:14:11 -07:00
recursion-compression-pseudoprobe.perfscript [CSSPGO][llvm-profgen] Compress recursive cycles in calling context 2021-02-03 22:16:07 -08:00
symbolize.ll [CSSPGO][llvm-profgen] Allow multiple executable load segments. 2021-07-13 18:22:24 -07:00
symbolize.perfbin [CSSPGO][llvm-profgen] Allow multiple executable load segments. 2021-07-13 18:22:24 -07:00
truncated-pseudoprobe.ll [CSSPGO] Undoing the concept of dangling pseudo probe 2021-06-18 15:14:11 -07:00
truncated-pseudoprobe.perfbin [CSSPGO] Undoing the concept of dangling pseudo probe 2021-06-18 15:14:11 -07:00
truncated-pseudoprobe.perfscript [CSSPGO] Undoing the concept of dangling pseudo probe 2021-06-18 15:14:11 -07:00
unique-linkage-name-dwarf.perfbin [CSSPGO][llvm-profgen] Fix getCanonicalFnName usage in llvm-profgen 2021-03-15 21:00:42 -07:00
unique-linkage-name-dwarf.perfscript [CSSPGO][llvm-profgen] Fix getCanonicalFnName usage in llvm-profgen 2021-03-15 21:00:42 -07:00
unique-linkage-name-probe.perfbin [CSSPGO] Undoing the concept of dangling pseudo probe 2021-06-18 15:14:11 -07:00
unique-linkage-name-probe.perfscript [CSSPGO][llvm-profgen] Fix getCanonicalFnName usage in llvm-profgen 2021-03-15 21:00:42 -07:00