1 ; RUN: opt < %s -passes='default<O1>' -disable-output -debug-pass-manager=verbose 2>&1 | FileCheck %s
2 ; RUN: opt < %s -passes='default<O2>' -disable-output -debug-pass-manager=verbose 2>&1 | FileCheck %s
4 ; BDCE only runs once in the function simplification pipeline and nowhere else so we use that to check for reruns.
6 ; CHECK: PassManager{{.*}}SCC{{.*}} on (f1)
7 ; CHECK: Running pass: BDCEPass on f1
8 ; CHECK: PassManager{{.*}}SCC{{.*}} on (f2, f3)
9 ; CHECK: Running pass: BDCEPass on f2
11 ; CHECK: PassManager{{.*}}SCC{{.*}} on (f2)
12 ; CHECK-NOT: Running pass: BDCEPass on f2
13 ; CHECK: PassManager{{.*}}SCC{{.*}} on (f3)
14 ; CHECK: Running pass: BDCEPass on f3
16 define void @f1(ptr %p) alwaysinline {
21 define void @f2() #0 {
22 call void @f1(ptr @f2)
27 define void @f3() #0 {
32 attributes #0 = { nofree noreturn nosync nounwind readnone noinline }