2017-06-30 07:10:13 +08:00
|
|
|
// REQUIRES: x86-registered-target
|
|
|
|
|
|
|
|
// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -emit-llvm-bc -o /dev/null -fexperimental-new-pass-manager -fdebug-pass-manager -flto=full -O0 %s 2>&1 | FileCheck %s \
|
|
|
|
// RUN: -check-prefix=CHECK-FULL-O0
|
|
|
|
// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -emit-llvm-bc -o /dev/null -fexperimental-new-pass-manager -fdebug-pass-manager -flto=thin -O0 %s 2>&1 | FileCheck %s \
|
|
|
|
// RUN: -check-prefix=CHECK-THIN-O0
|
|
|
|
// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -emit-llvm-bc -o /dev/null -fexperimental-new-pass-manager -fdebug-pass-manager -flto=full -O1 %s 2>&1 | FileCheck %s \
|
|
|
|
// RUN: -check-prefix=CHECK-FULL-OPTIMIZED
|
|
|
|
// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -emit-llvm-bc -o /dev/null -fexperimental-new-pass-manager -fdebug-pass-manager -flto=thin -O1 %s 2>&1 | FileCheck %s \
|
|
|
|
// RUN: -check-prefix=CHECK-THIN-OPTIMIZED
|
|
|
|
// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -emit-llvm-bc -o /dev/null -fexperimental-new-pass-manager -fdebug-pass-manager -flto=full -O2 %s 2>&1 | FileCheck %s \
|
|
|
|
// RUN: -check-prefix=CHECK-FULL-OPTIMIZED
|
|
|
|
// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -emit-llvm-bc -o /dev/null -fexperimental-new-pass-manager -fdebug-pass-manager -flto=thin -O2 %s 2>&1 | FileCheck %s \
|
|
|
|
// RUN: -check-prefix=CHECK-THIN-OPTIMIZED
|
|
|
|
// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -emit-llvm-bc -o /dev/null -fexperimental-new-pass-manager -fdebug-pass-manager -flto=full -O3 %s 2>&1 | FileCheck %s \
|
|
|
|
// RUN: -check-prefix=CHECK-FULL-OPTIMIZED
|
|
|
|
// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -emit-llvm-bc -o /dev/null -fexperimental-new-pass-manager -fdebug-pass-manager -flto=thin -O3 %s 2>&1 | FileCheck %s \
|
|
|
|
// RUN: -check-prefix=CHECK-THIN-OPTIMIZED
|
|
|
|
// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -emit-llvm-bc -o /dev/null -fexperimental-new-pass-manager -fdebug-pass-manager -flto=full -Os %s 2>&1 | FileCheck %s \
|
|
|
|
// RUN: -check-prefix=CHECK-FULL-OPTIMIZED
|
|
|
|
// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -emit-llvm-bc -o /dev/null -fexperimental-new-pass-manager -fdebug-pass-manager -flto=thin -Os %s 2>&1 | FileCheck %s \
|
|
|
|
// RUN: -check-prefix=CHECK-THIN-OPTIMIZED
|
|
|
|
// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -emit-llvm-bc -o /dev/null -fexperimental-new-pass-manager -fdebug-pass-manager -flto=full -Oz %s 2>&1 | FileCheck %s \
|
|
|
|
// RUN: -check-prefix=CHECK-FULL-OPTIMIZED
|
|
|
|
// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -emit-llvm-bc -o /dev/null -fexperimental-new-pass-manager -fdebug-pass-manager -flto=thin -Oz %s 2>&1 | FileCheck %s \
|
|
|
|
// RUN: -check-prefix=CHECK-THIN-OPTIMIZED
|
|
|
|
|
|
|
|
// CHECK-FULL-O0: Running pass: AlwaysInlinerPass
|
2019-06-14 02:18:40 +08:00
|
|
|
// CHECK-FULL-O0-NEXT: Running analysis: InnerAnalysisManagerProxy
|
2020-09-26 01:59:20 +08:00
|
|
|
// CHECK-FULL-O0-NEXT: Running analysis: ProfileSummaryAnalysis
|
2021-07-15 14:31:31 +08:00
|
|
|
// CHECK-FULL-O0: Running pass: CoroSplitPass
|
|
|
|
// CHECK-FULL-O0-NEXT: Running pass: CoroCleanupPass
|
2019-01-05 03:05:01 +08:00
|
|
|
// CHECK-FULL-O0-NEXT: Running pass: CanonicalizeAliasesPass
|
2018-06-23 04:23:21 +08:00
|
|
|
// CHECK-FULL-O0-NEXT: Running pass: NameAnonGlobalPass
|
2017-06-30 07:10:13 +08:00
|
|
|
// CHECK-FULL-O0-NEXT: Running pass: BitcodeWriterPass
|
|
|
|
|
|
|
|
// CHECK-THIN-O0: Running pass: AlwaysInlinerPass
|
2019-06-14 02:18:40 +08:00
|
|
|
// CHECK-THIN-O0-NEXT: Running analysis: InnerAnalysisManagerProxy
|
2020-09-26 01:59:20 +08:00
|
|
|
// CHECK-THIN-O0-NEXT: Running analysis: ProfileSummaryAnalysis
|
2021-07-15 14:31:31 +08:00
|
|
|
// CHECK-THIN-O0: Running pass: CoroCleanupPass
|
2019-01-05 03:05:01 +08:00
|
|
|
// CHECK-THIN-O0-NEXT: Running pass: CanonicalizeAliasesPass
|
2017-06-30 07:10:13 +08:00
|
|
|
// CHECK-THIN-O0-NEXT: Running pass: NameAnonGlobalPass
|
|
|
|
// CHECK-THIN-O0-NEXT: Running pass: ThinLTOBitcodeWriterPass
|
|
|
|
|
|
|
|
// TODO: The LTO pre-link pipeline currently invokes
|
|
|
|
// buildPerModuleDefaultPipeline(), which contains LoopVectorizePass.
|
|
|
|
// This may change as the pipeline gets implemented.
|
|
|
|
// CHECK-FULL-OPTIMIZED: Running pass: LoopVectorizePass
|
|
|
|
// CHECK-FULL-OPTIMIZED: Running pass: BitcodeWriterPass
|
|
|
|
|
|
|
|
// The ThinLTO pre-link pipeline shouldn't contain passes like
|
|
|
|
// LoopVectorizePass.
|
|
|
|
// CHECK-THIN-OPTIMIZED-NOT: Running pass: LoopVectorizePass
|
2019-01-05 03:05:01 +08:00
|
|
|
// CHECK-THIN-OPTIMIZED: Running pass: CanonicalizeAliasesPass
|
2017-06-30 07:10:13 +08:00
|
|
|
// CHECK-THIN-OPTIMIZED: Running pass: NameAnonGlobalPass
|
|
|
|
// CHECK-THIN-OPTIMIZED: Running pass: ThinLTOBitcodeWriterPass
|
|
|
|
|
|
|
|
void Foo() {}
|