SuccessChanges

Summary

  1. Keep import function list for inlinee profile update (details)
Commit ba1dfae054b4c9a8b11aabd62fd0dcb792366206 by aktoon
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
The file was modifiedllvm/lib/IR/Function.cpp
The file was modifiedllvm/lib/Transforms/Utils/InlineFunction.cpp
The file was addedllvm/test/Transforms/SampleProfile/inline-callee-update.ll
The file was addedllvm/test/Transforms/SampleProfile/Inputs/inline-callee-update.prof