]> granicus.if.org Git - llvm/commit
Disable loop unrolling and icp in SamplePGO ThinLTO compile phase
authorDehao Chen <dehao@google.com>
Thu, 23 Mar 2017 21:20:05 +0000 (21:20 +0000)
committerDehao Chen <dehao@google.com>
Thu, 23 Mar 2017 21:20:05 +0000 (21:20 +0000)
commit42740ced927f8837c131a920db5a98d62dbbb54d
treeef2eb57586bb287e0d14cf9f0404c8f076cff8a8
parent496710d9de9acc2ccd233ad81cd73035bb6cab7f
Disable loop unrolling and icp in SamplePGO ThinLTO compile phase

Summary:
loop unrolling and icp will make the sample profile annotation much harder in the backend. So disable these 2 optimization in the ThinLTO compile phase.
Will add a test in cfe in a separate patch.

Reviewers: tejohnson

Reviewed By: tejohnson

Subscribers: mehdi_amini, llvm-commits, Prazek

Differential Revision: https://reviews.llvm.org/D31217

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@298646 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/IPO/PassManagerBuilder.cpp