forked from OSchip/llvm-project
47c1f2741f
This patch addresses two issues related to adding inline functions to the import list while recursively going through the profiling data. 1. For callsite samples, only add an inlined function to the import list if it's from outside of the module (i.e. only has a declaration inside the module). 2. For body samples, add each target function to the import list if it's from outside of the module (i.e. only has a declaration inside the module). Previously we were using getSubProgram() to check whether it has dbg info, which is inaccurate. This fix properly add imports and could improve the quality of the pass. Added a few changes to the test to catch these cases. Differential Revision: https://reviews.llvm.org/D79379 |
||
---|---|---|
.. | ||
Inputs | ||
branch.ll | ||
calls.ll | ||
cold-indirect-call.ll | ||
compressed-profile-symbol-list.ll | ||
cov-zero-samples.ll | ||
coverage-warning.ll | ||
discriminator.ll | ||
early-inline.ll | ||
entry_counts.ll | ||
entry_counts_cold.ll | ||
entry_counts_missing_dbginfo.ll | ||
flattened.ll | ||
fnptr.ll | ||
function_metadata.ll | ||
gcc-simple.ll | ||
indirect-call-gcc.ll | ||
indirect-call.ll | ||
inline-act.ll | ||
inline-callee-update.ll | ||
inline-cold-callsite-samplepgo.ll | ||
inline-cold.ll | ||
inline-combine.ll | ||
inline-coverage.ll | ||
inline-mergeprof.ll | ||
inline-stats.ll | ||
inline-topdown.ll | ||
inline.ll | ||
nodebug.ll | ||
nolocinfo.ll | ||
offset.ll | ||
profile-format-compress.ll | ||
profile-format.ll | ||
profile-sample-accurate.ll | ||
propagate.ll | ||
remap.ll | ||
remarks.ll | ||
section-accurate-samplepgo.ll | ||
summary.ll | ||
syntax.ll | ||
uncompressed-profile-symbol-list.ll | ||
warm-inline-instance.ll |