xref: /llvm-project/llvm/test/Other/function-simplification.ll (revision ff79eb3af6f0def0be2c1d5907e952b394406a08)
1; RUN: opt -passes='function-simplification<O1>' -debug-pass-manager -disable-output < %s 2>&1 | FileCheck %s --check-prefix=O1
2; RUN: opt -passes='function-simplification<O2>' -debug-pass-manager -disable-output < %s 2>&1 | FileCheck %s --check-prefix=O23SZ
3; RUN: opt -passes='function-simplification<O3>' -debug-pass-manager -disable-output < %s 2>&1 | FileCheck %s --check-prefix=O23SZ
4; RUN: opt -passes='function-simplification<Os>' -debug-pass-manager -disable-output < %s 2>&1 | FileCheck %s --check-prefix=O23SZ
5; RUN: opt -passes='function-simplification<Oz>' -debug-pass-manager -disable-output < %s 2>&1 | FileCheck %s --check-prefix=O23SZ
6; RUN: not opt -passes='function-simplification<O0>' -disable-output < %s 2>&1 | FileCheck %s --check-prefix=O0
7
8; O1: Running pass: EarlyCSEPass
9; O1-NOT: Running pass: GVNPass
10
11; O23SZ: Running pass: EarlyCSEPass
12; O23SZ: Running pass: GVNPass
13
14; O0: invalid function-simplification parameter 'O0'
15
16define void @f() {
17  ret void
18}