[hot-cold-split] Only perform splitting in ThinLTO backend post-link
authorTeresa Johnson <tejohnson@google.com>
Tue, 23 Oct 2018 22:57:40 +0000 (22:57 +0000)
committerTeresa Johnson <tejohnson@google.com>
Tue, 23 Oct 2018 22:57:40 +0000 (22:57 +0000)
commitd725335bd19f5aaaea1d387e974ee4c84ec782f2
tree47d9601c3f24078c78827d94a831af5b22c20daa
parent3513dc245ec6666d20faf3a05a0f8b5e051fba0b
[hot-cold-split] Only perform splitting in ThinLTO backend post-link

Summary:
Fix the new PM to only perform hot cold splitting once during ThinLTO,
by skipping it in the pre-link phase.

This was already fixed in the old PM by the move of the hot cold split
pass later (after the early return when PrepareForThinLTO) by r344869.

Reviewers: vsk, sebpop, hiraditya

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

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

llvm-svn: 345096
llvm/lib/Passes/PassBuilder.cpp
llvm/test/Other/new-pm-thinlto-defaults.ll