File tree Expand file tree Collapse file tree 1 file changed +12
-9
lines changed Expand file tree Collapse file tree 1 file changed +12
-9
lines changed Original file line number Diff line number Diff line change 1
- ; RUN: not opt -O1 -O2 < %s 2>&1 | FileCheck %s --check-prefix=MULTIPLE
2
- ; RUN: not opt -O1 -passes='no-op-module' < %s 2>&1 | FileCheck %s --check-prefix=BOTH
3
- ; RUN: opt -O0 < %s -S 2>&1 | FileCheck %s --check-prefix=OPT
4
- ; RUN: opt -O1 < %s -S 2>&1 | FileCheck %s --check-prefix=OPT
5
- ; RUN: opt -O2 < %s -S 2>&1 | FileCheck %s --check-prefix=OPT
6
- ; RUN: opt -O3 < %s -S 2>&1 | FileCheck %s --check-prefix=OPT
7
- ; RUN: opt -Os < %s -S 2>&1 | FileCheck %s --check-prefix=OPT
8
- ; RUN: opt -Oz < %s -S 2>&1 | FileCheck %s --check-prefix=OPT
9
- ; RUN: opt -O2 -debug-pass-manager -disable-output < %s 2>&1 | FileCheck %s --check-prefix=AA
1
+ ; TODO: remove -enable-new-pm from RUN-lines once we move to new pass manager
2
+ ; by default. This test was designed to test NewPM only.
3
+
4
+ ; RUN: not opt -enable-new-pm -O1 -O2 < %s 2>&1 | FileCheck %s --check-prefix=MULTIPLE
5
+ ; RUN: not opt -enable-new-pm -O1 -passes='no-op-module' < %s 2>&1 | FileCheck %s --check-prefix=BOTH
6
+ ; RUN: opt -enable-new-pm -O0 < %s -S 2>&1 | FileCheck %s --check-prefix=OPT
7
+ ; RUN: opt -enable-new-pm -O1 < %s -S 2>&1 | FileCheck %s --check-prefix=OPT
8
+ ; RUN: opt -enable-new-pm -O2 < %s -S 2>&1 | FileCheck %s --check-prefix=OPT
9
+ ; RUN: opt -enable-new-pm -O3 < %s -S 2>&1 | FileCheck %s --check-prefix=OPT
10
+ ; RUN: opt -enable-new-pm -Os < %s -S 2>&1 | FileCheck %s --check-prefix=OPT
11
+ ; RUN: opt -enable-new-pm -Oz < %s -S 2>&1 | FileCheck %s --check-prefix=OPT
12
+ ; RUN: opt -enable-new-pm -O2 -debug-pass-manager -disable-output < %s 2>&1 | FileCheck %s --check-prefix=AA
10
13
11
14
; MULTIPLE: Cannot specify multiple -O#
12
15
; BOTH: Cannot specify -O# and --passes=
You can’t perform that action at this time.
0 commit comments