xref: /llvm-project/llvm/test/Analysis/RegionInfo/condition_forward_edge.ll (revision 50153213c80286c6c91da4612aaf234cc6438c63)
1; REQUIRES: asserts
2
3; RUN: opt < %s -passes='print<regions>' 2>&1 | FileCheck %s
4; RUN: opt < %s -passes='print<regions>' -stats 2>&1 | FileCheck -check-prefix=STAT %s
5; RUN: opt -passes='print<regions>' -print-region-style=bb < %s 2>&1 | FileCheck -check-prefix=BBIT %s
6; RUN: opt -passes='print<regions>' -print-region-style=rn < %s 2>&1 | FileCheck -check-prefix=RNIT %s
7
8define void @normal_condition() nounwind {
9"0":
10	br label %"1"
11"1":
12	br i1 1, label %"2", label %"3"
13"2":
14	br label %"3"
15"3":
16	ret void
17}
18; CHECK-NOT: =>
19; CHECK: [0] 0 => <Function Return>
20; CHECK: [1] 1 => 3
21
22; STAT: 2 region - The # of regions
23
24; BBIT: 0, 1, 2, 3,
25; BBIT: 1, 2,
26
27; RNIT: 0, 1 => 3, 3,
28; RNIT: 1, 2,
29