Files
clang-p2996/llvm/test/Transforms/SampleProfile/Inputs/inline-callee-update.prof
Wenlei He ba1dfae054 Keep import function list for inlinee profile update
Summary:
When adjusting function entry counts after inlining, Funciton::setEntryCount is called without providing an import function list. The side effect of that is the previously set import function list will be dropped. The import function list is used by ThinLTO to help import hot cross module callee for LTO inlining, so dropping that during ThinLTO pre-link may adversely affect LTO inlining. The fix is to keep the list while updating entry counts for inlining.

Reviewers: wmi, davidxl, tejohnson

Subscribers: mehdi_amini, hiraditya, dexonsmith, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D69736
2019-11-06 18:36:00 -08:00

10 lines
245 B
Plaintext

test_sample_loader_inline:63067:0
1: sample_loader_inlinee:40000
sample_loader_inlinee:3000:0
1: direct_leaf_func:35000
11: 3000
test_cgscc_inline:63067:0
1: sample_loader_inlinee:1
cgscc_inlinee:3000:0
1: direct_leaf_func:35000
11: 3000