Refactoring SampleProfileLoader::inlineHotFunctions to use helpers from CSSPGO inlining and reduce similar code in the inlining loop, plus minor cleanup for AFDO path.
Test Plan:
Paths
| Differential D95024
[CSSPGO] Factor out common part for CSSPGO inline and AFDO inline ClosedPublic Authored by wenlei on Jan 19 2021, 11:54 PM.
Details Summary Refactoring SampleProfileLoader::inlineHotFunctions to use helpers from CSSPGO inlining and reduce similar code in the inlining loop, plus minor cleanup for AFDO path. Test Plan:
Diff Detail
Event Timeline
Comment Actions That is a very helpful refactoring. Thanks!
This revision is now accepted and ready to land.Jan 21 2021, 1:23 PM
wenlei retitled this revision from [NFC] Factor out common part for CSSPGO inline and AFDO inline to [CSSPGO] Factor out common part for CSSPGO inline and AFDO inline.Jan 26 2021, 8:20 AM This revision was landed with ongoing or failed builds.Feb 2 2021, 12:34 AM Closed by commit rG9a03058d6322: [CSSPGO] Factor out common part for CSSPGO inline and AFDO inline (authored by wenlei). · Explain Why This revision was automatically updated to reflect the committed changes. akuegel added a reverting change: rG48ca6da9d2f5: Revert "[CSSPGO] Factor out common part for CSSPGO inline and AFDO inline". wenlei added a child revision: D95980: [CSSPGO] Use merged base profile for hot threshold calculation.Feb 3 2021, 3:00 PM
Revision Contents
Diff 318759 llvm/lib/Transforms/IPO/SampleProfile.cpp
llvm/test/Transforms/SampleProfile/remarks.ll
|
Maybe have a comment explaining the params, especially showing some of them are input and some are output.