forked from OSchip/llvm-project
[test] Remove references to -fno-legacy-pass-manager in tests
This has been the default for a while and we're in the process of removing the legacy PM optimization pipeline.
This commit is contained in:
parent
982247dce5
commit
98574aa1d2
|
@ -1,6 +1,6 @@
|
|||
// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py
|
||||
// RUN: %clang_cc1 -no-opaque-pointers -triple aarch64-arm-none-eabi -target-feature +neon -target-feature +bf16 \
|
||||
// RUN: -disable-O0-optnone -emit-llvm -fno-legacy-pass-manager %s -o - | opt -S -mem2reg | FileCheck %s
|
||||
// RUN: -disable-O0-optnone -emit-llvm %s -o - | opt -S -mem2reg | FileCheck %s
|
||||
|
||||
// REQUIRES: aarch64-registered-target || arm-registered-target
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py
|
||||
// RUN: %clang_cc1 -triple aarch64-arm-none-eabi -target-feature +neon -target-feature +bf16 \
|
||||
// RUN: -disable-O0-optnone -emit-llvm -fno-legacy-pass-manager %s -o - | opt -S -mem2reg | FileCheck %s
|
||||
// RUN: -disable-O0-optnone -emit-llvm %s -o - | opt -S -mem2reg | FileCheck %s
|
||||
|
||||
// REQUIRES: aarch64-registered-target || arm-registered-target
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py
|
||||
// RUN: %clang_cc1 -triple aarch64-arm-none-eabi -target-feature +neon -target-feature +bf16 \
|
||||
// RUN: -disable-O0-optnone -emit-llvm -fno-legacy-pass-manager %s -o - | opt -S -mem2reg | FileCheck --check-prefix=CHECK-LE %s
|
||||
// RUN: -disable-O0-optnone -emit-llvm %s -o - | opt -S -mem2reg | FileCheck --check-prefix=CHECK-LE %s
|
||||
// RUN: %clang_cc1 -triple aarch64_be-arm-none-eabi -target-feature +neon -target-feature +bf16 \
|
||||
// RUN: -disable-O0-optnone -emit-llvm %s -fno-legacy-pass-manager -o - | opt -S -mem2reg | FileCheck --check-prefix=CHECK-BE %s
|
||||
// RUN: -disable-O0-optnone -emit-llvm %s -o - | opt -S -mem2reg | FileCheck --check-prefix=CHECK-BE %s
|
||||
|
||||
// REQUIRES: aarch64-registered-target || arm-registered-target
|
||||
|
||||
|
|
|
@ -1,19 +1,19 @@
|
|||
// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py
|
||||
// RUN: %clang_cc1 -no-opaque-pointers \
|
||||
// RUN: -triple aarch64-arm-none-eabi -target-feature +neon -target-feature +bf16 \
|
||||
// RUN: -disable-O0-optnone -emit-llvm -fno-legacy-pass-manager -o - %s \
|
||||
// RUN: -disable-O0-optnone -emit-llvm -o - %s \
|
||||
// RUN: | opt -S -mem2reg \
|
||||
// RUN: | FileCheck --check-prefixes=CHECK,CHECK-A64 %s
|
||||
// RUN: %clang_cc1 -no-opaque-pointers \
|
||||
// RUN: -triple armv8.6a-arm-none-eabi -target-feature +neon \
|
||||
// RUN: -target-feature +bf16 -mfloat-abi hard \
|
||||
// RUN: -disable-O0-optnone -emit-llvm -fno-legacy-pass-manager -o - %s \
|
||||
// RUN: -disable-O0-optnone -emit-llvm -o - %s \
|
||||
// RUN: | opt -S -mem2reg \
|
||||
// RUN: | FileCheck --check-prefixes=CHECK,CHECK-A32-HARDFP %s
|
||||
// RUN: %clang_cc1 -no-opaque-pointers \
|
||||
// RUN: -triple armv8.6a-arm-none-eabi -target-feature +neon \
|
||||
// RUN: -target-feature +bf16 -mfloat-abi softfp \
|
||||
// RUN: -disable-O0-optnone -emit-llvm -fno-legacy-pass-manager -o - %s \
|
||||
// RUN: -disable-O0-optnone -emit-llvm -o - %s \
|
||||
// RUN: | opt -S -mem2reg \
|
||||
// RUN: | FileCheck --check-prefixes=CHECK,CHECK-A32-SOFTFP %s
|
||||
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py
|
||||
// RUN: %clang_cc1 -no-opaque-pointers -triple armv8-arm-none-eabi \
|
||||
// RUN: -target-feature +neon -target-feature +bf16 -mfloat-abi soft \
|
||||
// RUN: -disable-O0-optnone -S -emit-llvm -fno-legacy-pass-manager -o - %s \
|
||||
// RUN: -disable-O0-optnone -S -emit-llvm -o - %s \
|
||||
// RUN: | opt -S -mem2reg | FileCheck %s
|
||||
// RUN: %clang_cc1 -no-opaque-pointers -triple armv8-arm-none-eabi \
|
||||
// RUN: -target-feature +neon -target-feature +bf16 -mfloat-abi hard \
|
||||
// RUN: -disable-O0-optnone -S -emit-llvm -fno-legacy-pass-manager -o - %s \
|
||||
// RUN: -disable-O0-optnone -S -emit-llvm -o - %s \
|
||||
// RUN: | opt -S -mem2reg | FileCheck %s
|
||||
|
||||
// REQUIRES: aarch64-registered-target || arm-registered-target
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py
|
||||
// RUN: %clang_cc1 -triple armv8.6a-arm-none-eabi -target-feature +neon -target-feature +bf16 -mfloat-abi hard \
|
||||
// RUN: -disable-O0-optnone -emit-llvm -fno-legacy-pass-manager %s -o - | opt -S -mem2reg | FileCheck %s
|
||||
// RUN: -disable-O0-optnone -emit-llvm %s -o - | opt -S -mem2reg | FileCheck %s
|
||||
// RUN: %clang_cc1 -triple armv8.6a-arm-none-eabi -target-feature +neon -target-feature +bf16 -mfloat-abi soft \
|
||||
// RUN: -disable-O0-optnone -emit-llvm -fno-legacy-pass-manager %s -o - | opt -S -mem2reg | FileCheck %s
|
||||
// RUN: -disable-O0-optnone -emit-llvm %s -o - | opt -S -mem2reg | FileCheck %s
|
||||
|
||||
// REQUIRES: aarch64-registered-target || arm-registered-target
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// RUN: %clang_cc1 -O0 -fno-legacy-pass-manager -fpseudo-probe-for-profiling -debug-info-kind=limited -emit-llvm -o - %s | FileCheck %s
|
||||
// RUN: %clang_cc1 -O2 -fno-legacy-pass-manager -fpseudo-probe-for-profiling -debug-info-kind=limited -emit-llvm -o - %s | FileCheck %s
|
||||
// RUN: %clang_cc1 -O0 -fpseudo-probe-for-profiling -debug-info-kind=limited -emit-llvm -o - %s | FileCheck %s
|
||||
// RUN: %clang_cc1 -O2 -fpseudo-probe-for-profiling -debug-info-kind=limited -emit-llvm -o - %s | FileCheck %s
|
||||
|
||||
// Check the generation of pseudoprobe intrinsic call
|
||||
|
||||
|
|
|
@ -8,13 +8,13 @@
|
|||
// CHECK: = distinct !DISubprogram(name: "foo", linkageName: "_Z3foov", scope:
|
||||
|
||||
/// Add a DWARF discriminators pass for PGO.
|
||||
// RUN: %clang_cc1 -emit-llvm -fno-legacy-pass-manager -fdebug-pass-manager -O1 -fprofile-instrument-path=a.profdata %s -o - 2>&1 | FileCheck %s --check-prefix=NODISCR
|
||||
// RUN: %clang_cc1 -emit-llvm -fno-legacy-pass-manager -fdebug-pass-manager -O1 -fprofile-instrument-path=a.profdata -fdebug-info-for-profiling %s -o - 2>&1 | FileCheck %s --check-prefix=DISCR
|
||||
// RUN: %clang_cc1 -emit-llvm -fdebug-pass-manager -O1 -fprofile-instrument-path=a.profdata %s -o - 2>&1 | FileCheck %s --check-prefix=NODISCR
|
||||
// RUN: %clang_cc1 -emit-llvm -fdebug-pass-manager -O1 -fprofile-instrument-path=a.profdata -fdebug-info-for-profiling %s -o - 2>&1 | FileCheck %s --check-prefix=DISCR
|
||||
|
||||
// RUN: echo > %t.proftext
|
||||
// RUN: llvm-profdata merge %t.proftext -o %t.profdata
|
||||
// RUN: %clang_cc1 -emit-llvm -fno-legacy-pass-manager -fdebug-pass-manager -O1 -fprofile-instrument-use-path=%t.profdata -fdebug-info-for-profiling %s -o - 2>&1 | FileCheck %s --check-prefix=DISCR
|
||||
// RUN: %clang_cc1 -emit-llvm -fno-legacy-pass-manager -fdebug-pass-manager -O1 -fdebug-info-for-profiling -fpseudo-probe-for-profiling %s -o - 2>&1 | FileCheck %s --check-prefix=PROBE
|
||||
// RUN: %clang_cc1 -emit-llvm -fdebug-pass-manager -O1 -fprofile-instrument-use-path=%t.profdata -fdebug-info-for-profiling %s -o - 2>&1 | FileCheck %s --check-prefix=DISCR
|
||||
// RUN: %clang_cc1 -emit-llvm -fdebug-pass-manager -O1 -fdebug-info-for-profiling -fpseudo-probe-for-profiling %s -o - 2>&1 | FileCheck %s --check-prefix=PROBE
|
||||
|
||||
// NODISCR-NOT: Running pass: AddDiscriminatorsPass
|
||||
// DISCR: Running pass: AddDiscriminatorsPass on {{.*}}
|
||||
|
|
|
@ -1,31 +1,17 @@
|
|||
// Check that legacy pass manager could only use -ftime-report
|
||||
// RUN: %clang_cc1 -flegacy-pass-manager -emit-obj -O1 \
|
||||
// RUN: -ftime-report %s -o /dev/null 2>&1 | \
|
||||
// RUN: FileCheck %s --check-prefixes=TIME,LPM
|
||||
// RUN: not %clang_cc1 -flegacy-pass-manager -emit-obj -O1 \
|
||||
// RUN: -ftime-report=per-pass %s -o /dev/null 2>&1 | \
|
||||
// RUN: FileCheck %s --check-prefixes=ERROR
|
||||
// RUN: not %clang_cc1 -flegacy-pass-manager -emit-obj -O1 \
|
||||
// RUN: -ftime-report=per-pass-run %s -o /dev/null 2>&1 | \
|
||||
// RUN: FileCheck %s --check-prefixes=ERROR
|
||||
|
||||
// Check -ftime-report/-ftime-report= output for the new pass manager
|
||||
// RUN: %clang_cc1 -emit-obj -O1 -fno-legacy-pass-manager \
|
||||
// Check -ftime-report/-ftime-report= output
|
||||
// RUN: %clang_cc1 -emit-obj -O1 \
|
||||
// RUN: -ftime-report %s -o /dev/null 2>&1 | \
|
||||
// RUN: FileCheck %s --check-prefixes=TIME,NPM
|
||||
// RUN: %clang_cc1 -emit-obj -O1 -fno-legacy-pass-manager \
|
||||
// RUN: %clang_cc1 -emit-obj -O1 \
|
||||
// RUN: -ftime-report=per-pass %s -o /dev/null 2>&1 | \
|
||||
// RUN: FileCheck %s --check-prefixes=TIME,NPM
|
||||
// RUN: %clang_cc1 -emit-obj -O1 -fno-legacy-pass-manager \
|
||||
// RUN: %clang_cc1 -emit-obj -O1 \
|
||||
// RUN: -ftime-report=per-pass-run %s -o /dev/null 2>&1 | \
|
||||
// RUN: FileCheck %s --check-prefixes=TIME,NPM-PER-INVOKE
|
||||
|
||||
// TIME: Pass execution timing report
|
||||
// TIME: Total Execution Time:
|
||||
// TIME: Name
|
||||
// LPM-DAG: Dominator Tree Construction #
|
||||
// LPM-DAG: Dominator Tree Construction #
|
||||
// LPM-DAG: Dominator Tree Construction #
|
||||
// NPM-PER-INVOKE-DAG: InstCombinePass #
|
||||
// NPM-PER-INVOKE-DAG: InstCombinePass #
|
||||
// NPM-PER-INVOKE-DAG: InstCombinePass #
|
||||
|
@ -33,9 +19,6 @@
|
|||
// NPM: InstCombinePass{{$}}
|
||||
// NPM-NOT: InstCombinePass #
|
||||
// TIME: Total{{$}}
|
||||
// LPM-NOT: Pass execution timing report
|
||||
// NPM: Pass execution timing report
|
||||
|
||||
// ERROR: error: invalid argument '-ftime-report={{.*}}' only allowed with '-fno-legacy-pass-manager'
|
||||
|
||||
int foo(int x, int y) { return x + y; }
|
||||
|
|
Loading…
Reference in New Issue