]> granicus.if.org Git - llvm/commit
[SamplePGO] More pipeline changes when flattened profile used in ThinLTO postlink
authorTeresa Johnson <tejohnson@google.com>
Tue, 5 Feb 2019 04:09:19 +0000 (04:09 +0000)
committerTeresa Johnson <tejohnson@google.com>
Tue, 5 Feb 2019 04:09:19 +0000 (04:09 +0000)
commit2ba6898176e40bad620b5c4882cd2e7edadf7c07
tree8f500f204a59c4ffadab3baf3b9d68456da2a0be
parentf9a06f692689bd99c76c8d186faf7e292ef3f85a
[SamplePGO] More pipeline changes when flattened profile used in ThinLTO postlink

Summary:
Follow on to D54819/r351476.

We also don't need to perform extra InstCombine pass when we aren't
loading the sample profile in the ThinLTO backend because we have a
flattened sample profile.

Additionally, for consistency and clarity, when we aren't reloading the
sample profile, perform ICP in the same location as non-sample PGO
backends. To this end I have moved the ICP invocation for non-SamplePGO
ThinLTO down into buildModuleSimplificationPipeline (partly addresses
the FIXME where we were previously setting this up).

Reviewers: wmi

Subscribers: mehdi_amini, inglorion, eraman, steven_wu, dexonsmith, llvm-commits

Tags: #llvm

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@353135 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Passes/PassBuilder.cpp
test/Other/new-pm-thinlto-defaults.ll