22 lines · plain
1; RUN: not opt -O1 -O2 < %s 2>&1 | FileCheck %s --check-prefix=MULTIPLE2; RUN: not opt -O1 -passes='no-op-module' < %s 2>&1 | FileCheck %s --check-prefix=BOTH3; RUN: not opt -O1 -passes=gvn < %s 2>&1 | FileCheck %s --check-prefix=BOTH4; RUN: opt -O0 < %s -S 2>&1 | FileCheck %s --check-prefix=OPT5; RUN: opt -O1 < %s -S 2>&1 | FileCheck %s --check-prefix=OPT6; RUN: opt -O2 < %s -S 2>&1 | FileCheck %s --check-prefix=OPT7; RUN: opt -O3 < %s -S 2>&1 | FileCheck %s --check-prefix=OPT8; RUN: opt -Os < %s -S 2>&1 | FileCheck %s --check-prefix=OPT9; RUN: opt -Oz < %s -S 2>&1 | FileCheck %s --check-prefix=OPT10; RUN: opt -O2 -debug-pass-manager -disable-output < %s 2>&1 | FileCheck %s --check-prefix=AA11 12; MULTIPLE: Cannot specify multiple -O#13; BOTH: Cannot specify -O# and --passes=14; OPT: define void @f15; Make sure we run the default AA pipeline with `opt -O#`16; AA: Running analysis: ScopedNoAliasAA17 18define void @f() {19 unreachable20}21 22