Skip to content

Commit 9e5bff9

Browse files
committed
Force opt to use new pass manager in opt-On.ll test after 15fefcb
1 parent 269574f commit 9e5bff9

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

llvm/test/Other/opt-On.ll

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
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
1013

1114
; MULTIPLE: Cannot specify multiple -O#
1215
; BOTH: Cannot specify -O# and --passes=

0 commit comments

Comments
 (0)