aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineScheduler.cpp
diff options
context:
space:
mode:
authorWenlei He <aktoon@gmail.com>2021-08-24 09:55:18 -0700
committerWenlei He <aktoon@gmail.com>2021-08-25 17:20:15 -0700
commita45d72e0247d080eb9437736bb6cadfc27e4c065 (patch)
treecf543f5d51ff5ffa515cbcd5be1fcea8d54b7b75 /llvm/lib/CodeGen/MachineScheduler.cpp
parent4a66a112860f56841a847ae3c667b05934e9513a (diff)
downloadllvm-a45d72e0247d080eb9437736bb6cadfc27e4c065.zip
llvm-a45d72e0247d080eb9437736bb6cadfc27e4c065.tar.gz
llvm-a45d72e0247d080eb9437736bb6cadfc27e4c065.tar.bz2
[CSSPGO] Add switch for sample loader to honor global pre-inliner decision from llvm-profgen
The change adds a switch to allow sample loader to use global pre-inliner's decision instead. The pre-inliner in llvm-profgen makes inline decision globally based on whole program profile and function byte size as cost proxy. Since pre-inliner also adjusts/merges context profile based on its inline decision, honoring its inline decision in sample loader would lead to better post-inline profile quality especially for thinlto where cross module profile merging isn't possible without pre-inliner. Minor fix in profile reader is also included. When pre-inliner is use, we now also turn off the default merging and trimming logic unless it's explicitly asked. Differential Revision: https://reviews.llvm.org/D108677
Diffstat (limited to 'llvm/lib/CodeGen/MachineScheduler.cpp')
0 files changed, 0 insertions, 0 deletions