llvm-project/llvm/test/Transforms/SampleProfile/Inputs
Hongtao Yu 47c1f2741f Properly add out-of-module functions to the import list
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
2020-05-11 10:00:14 -07:00
..
bad_discriminator_value.prof
bad_fn_header.prof
bad_line_values.prof
bad_mangle.prof
bad_sample_line.prof
bad_samples.prof
branch.prof
calls.prof
cold-indirect-call.prof
cov-zero-samples.prof
coverage-warning.prof
discriminator.prof
einline.prof
entry_counts.prof
entry_counts_cold.prof
flattened.prof
fnptr.binprof
fnptr.prof
function_metadata.compact.afdo Properly add out-of-module functions to the import list 2020-05-11 10:00:14 -07:00
function_metadata.prof Properly add out-of-module functions to the import list 2020-05-11 10:00:14 -07:00
gcc-simple.afdo
indirect-call.afdo
indirect-call.compact.afdo [SampleFDO] Fix invalid branch profile generated by indirect call promotion. 2020-01-15 18:36:06 -08:00
indirect-call.prof [SampleFDO] Fix invalid branch profile generated by indirect call promotion. 2020-01-15 18:36:06 -08:00
inline-act.prof
inline-callee-update.prof
inline-cold.prof [AutoFDO] Inline replay for cold/small callees from sample profile loader 2019-12-06 11:44:45 -08:00
inline-combine.prof
inline-coverage.prof
inline-hint.prof
inline-mergeprof.prof
inline-topdown.prof [AutoFDO] Top-down Inlining for specialization with context-sensitive profile 2019-12-05 16:07:01 -08:00
inline.compactbinary.afdo
inline.extbinary.afdo
inline.md5extbinary.afdo [SampleFDO] Port MD5 name table support to extbinary format. 2020-03-30 22:07:08 -07:00
inline.prof
nodebug.prof
nolocinfo.prof
offset.prof
profile-symbol-list.ll
profile-symbol-list.text
profsampleacc.extbinary.afdo
propagate.prof
remap.map
remap.prof
remarks.prof
summary.prof
syntax.prof
warm-inline-instance.prof