[SampleFDO] Skip PreLink ICP for better profile quality of MonoLTO PostLink
authorWenlei He <aktoon@gmail.com>
Fri, 19 Feb 2021 04:11:58 +0000 (20:11 -0800)
committerWenlei He <aktoon@gmail.com>
Sat, 20 Feb 2021 03:35:23 +0000 (19:35 -0800)
commita952d7291e99aded397073f61e091c0f011da779
treea791a70f5d00e2ffd54ea7b7d67e2bbc1924e05c
parent94d034fb86584ff2e95dd5c62dec46c8b4c383a9
[SampleFDO] Skip PreLink ICP for better profile quality of MonoLTO PostLink

For ThinLTO, PreLink ICP is skipped to favor better profile annotation during LTO PostLink. This change applies the same tweak for MonoLTO. Note that PreLink ICP not only makes PostLink profile annotation harder, it is also uncoordinated with PostLink ICP so duplicated ICP could happen.

Differential Revision: https://reviews.llvm.org/D97028
llvm/lib/Passes/PassBuilder.cpp