2021-09-02 00:51:31 +08:00
|
|
|
; RUN: opt -mtriple=x86_64-- -hot-cold-split=true -passes='default<Os>' -debug-pass-manager < %s -o /dev/null 2>&1 | FileCheck %s -check-prefix=DEFAULT-Os
|
2020-10-19 18:23:22 +08:00
|
|
|
; 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-25 02:55:49 +08:00
|
|
|
|
2018-10-22 02:11:56 +08:00
|
|
|
; REQUIRES: asserts
|
|
|
|
|
2019-02-16 02:46:44 +08:00
|
|
|
; Splitting should occur late.
|
2019-01-25 02:55:49 +08:00
|
|
|
|
2021-09-02 00:51:31 +08:00
|
|
|
; DEFAULT-Os: pass: HotColdSplittingPass
|
2019-01-25 02:55:49 +08:00
|
|
|
|
2019-02-16 02:46:44 +08:00
|
|
|
; LTO-PRELINK-Os-NOT: pass: HotColdSplittingPass
|
2019-01-25 02:55:49 +08:00
|
|
|
|
2019-02-16 02:46:44 +08:00
|
|
|
; THINLTO-PRELINK-Os-NOT: Running pass: HotColdSplittingPass
|
2019-01-25 02:55:49 +08:00
|
|
|
|
2019-02-16 02:46:44 +08:00
|
|
|
; LTO-POSTLINK-Os: HotColdSplitting
|
|
|
|
; THINLTO-POSTLINK-Os: HotColdSplitting
|