2020-10-19 12:23:22 +02:00
|
|
|
; RUN: opt -mtriple=x86_64-- -Os -hot-cold-split=true -debug-pass=Structure -enable-new-pm=0 < %s -o /dev/null 2>&1 | FileCheck %s -check-prefix=DEFAULT-Os
|
|
|
|
; RUN: opt -mtriple=x86_64-- -hot-cold-split=true -passes='lto-pre-link<Os>' -debug-pass-manager < %s -o /dev/null 2>&1 | FileCheck %s -check-prefix=LTO-PRELINK-Os
|
|
|
|
; RUN: opt -mtriple=x86_64-- -hot-cold-split=true -passes='thinlto-pre-link<Os>' -debug-pass-manager < %s -o /dev/null 2>&1 | FileCheck %s -check-prefix=THINLTO-PRELINK-Os
|
|
|
|
; RUN: opt -mtriple=x86_64-- -hot-cold-split=true -passes='lto<Os>' -debug-pass-manager < %s -o /dev/null 2>&1 | FileCheck %s -check-prefix=LTO-POSTLINK-Os
|
|
|
|
; RUN: opt -mtriple=x86_64-- -hot-cold-split=true -passes='thinlto<Os>' -debug-pass-manager < %s -o /dev/null 2>&1 | FileCheck %s -check-prefix=THINLTO-POSTLINK-Os
|
2019-01-24 19:55:49 +01:00
|
|
|
|
2018-10-21 20:11:56 +02:00
|
|
|
; REQUIRES: asserts
|
|
|
|
|
2019-02-15 19:46:44 +01:00
|
|
|
; Splitting should occur late.
|
2019-01-24 19:55:49 +01:00
|
|
|
|
|
|
|
; DEFAULT-Os: Hot Cold Splitting
|
2019-02-15 19:46:44 +01:00
|
|
|
; DEFAULT-Os: Simplify the CFG
|
2019-01-24 19:55:49 +01:00
|
|
|
|
2019-02-15 19:46:44 +01:00
|
|
|
; LTO-PRELINK-Os-NOT: pass: HotColdSplittingPass
|
2019-01-24 19:55:49 +01:00
|
|
|
|
2019-02-15 19:46:44 +01:00
|
|
|
; THINLTO-PRELINK-Os-NOT: Running pass: HotColdSplittingPass
|
2019-01-24 19:55:49 +01:00
|
|
|
|
2019-02-15 19:46:44 +01:00
|
|
|
; LTO-POSTLINK-Os: HotColdSplitting
|
|
|
|
; THINLTO-POSTLINK-Os: HotColdSplitting
|