diff options
author | Teresa Johnson <tejohnson@google.com> | 2018-10-23 22:57:40 +0000 |
---|---|---|
committer | Teresa Johnson <tejohnson@google.com> | 2018-10-23 22:57:40 +0000 |
commit | d725335bd19f5aaaea1d387e974ee4c84ec782f2 (patch) | |
tree | 47d9601c3f24078c78827d94a831af5b22c20daa /llvm/test/Other | |
parent | 3513dc245ec6666d20faf3a05a0f8b5e051fba0b (diff) | |
download | bcm5719-llvm-d725335bd19f5aaaea1d387e974ee4c84ec782f2.tar.gz bcm5719-llvm-d725335bd19f5aaaea1d387e974ee4c84ec782f2.zip |
[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
Diffstat (limited to 'llvm/test/Other')
-rw-r--r-- | llvm/test/Other/new-pm-thinlto-defaults.ll | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/test/Other/new-pm-thinlto-defaults.ll b/llvm/test/Other/new-pm-thinlto-defaults.ll index 001e3eeeb96..c68aa1d05aa 100644 --- a/llvm/test/Other/new-pm-thinlto-defaults.ll +++ b/llvm/test/Other/new-pm-thinlto-defaults.ll @@ -26,6 +26,10 @@ ; RUN: opt -disable-verify -debug-pass-manager -new-pm-debug-info-for-profiling \ ; RUN: -passes='thinlto-pre-link<O2>,name-anon-globals' -S %s 2>&1 \ ; RUN: | FileCheck %s --check-prefixes=CHECK-DIS,CHECK-O,CHECK-O2,CHECK-PRELINK-O,CHECK-PRELINK-O2 +; Enabling the hot-cold-split pass should not affect the ThinLTO pre-link +; RUN: opt -disable-verify -debug-pass-manager \ +; RUN: -passes='thinlto-pre-link<O2>,name-anon-globals' -hot-cold-split -S %s 2>&1 \ +; RUN: | FileCheck %s --check-prefixes=CHECK-O,CHECK-O2,CHECK-PRELINK-O,CHECK-PRELINK-O-NODIS,CHECK-PRELINK-O2 ; ; Postlink pipelines: ; RUN: opt -disable-verify -debug-pass-manager \ |