2020-10-14 05:35:29 +08:00
|
|
|
; RUN: opt -mtriple=x86_64-- -Os -debug-pass=Structure -enable-new-pm=0 < %s -o /dev/null 2>&1 | FileCheck %s -check-prefix=DEFAULT-Os
|
|
|
|
; RUN: opt -mtriple=x86_64-- -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-- -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-- -passes='lto<Os>' -debug-pass-manager < %s -o /dev/null 2>&1 | FileCheck %s -check-prefix=LTO-POSTLINK-Os
|
|
|
|
; RUN: opt -mtriple=x86_64-- -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
|
|
|
|
|
|
|
; DEFAULT-Os: Hot Cold Splitting
|
2019-02-16 02:46:44 +08:00
|
|
|
; DEFAULT-Os: Simplify the CFG
|
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
|