1 ; RUN: opt < %s -debug-pass-manager -passes='require<domtree>,loop(loop-simplifycfg),gvn,loop(indvars)' 2>&1 -S | FileCheck --check-prefix=NEW-PM --check-prefix=IR %s
3 ; Check CFG-only analysis are preserved by SCCP by running it between 2
6 ; CHECK: Dominator Tree Construction
7 ; CHECK: Natural Loop Information
8 ; CHECK: Canonicalize natural loops
9 ; CHECK: LCSSA Verifier
10 ; CHECK: Loop-Closed SSA Form Pass
11 ; CHECK: Global Value Numbering
12 ; CHECK-NOT: Dominator Tree Construction
13 ; CHECK-NOT: Natural Loop Information
14 ; CHECK: Canonicalize natural loops
16 ; NEW-PM-DAG: Running analysis: LoopAnalysis on test
17 ; NEW-PM-DAG: Running analysis: DominatorTreeAnalysis on test
18 ; NEW-PM: Running pass: GVNPass on test
19 ; NEW-PM-NOT: Running analysis: LoopAnalysis on test
20 ; NEW-PM-NOT: Running analysis: DominatorTreeAnalysis on test
23 declare void @dostuff()
26 ; IR-LABEL: define i32 @test()
28 ; IR: br i1 false, label %then, label %latch
30 ; IR-NEXT: call void @dostuff()
31 ; IR-NEXT: br label %latch
37 %iv = phi i32 [ %res, %entry ], [ 0, %latch ]
38 %ic = icmp eq i32 %res, 99
39 br i1 %ic, label %then, label %latch
51 br i1 %ec, label %exit, label %header