• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: opt -regions -analyze < %s
2; RUN: opt -regions -stats < %s |& FileCheck -check-prefix=STAT %s
3; RUN: opt -regions -print-region-style=bb  -analyze < %s |& FileCheck -check-prefix=BBIT %s
4; RUN: opt -regions -print-region-style=rn  -analyze < %s |& FileCheck -check-prefix=RNIT %s
5
6define void @normal_condition() nounwind {
70:
8	br label %"7"
97:
10	br i1 1, label %"1", label %"8"
111:
12	br i1 1, label %"2", label %"3"
132:
14	br label %"5"
155:
16	br i1 1, label %"11", label %"12"
1711:
18        br label %"6"
1912:
20        br label %"6"
216:
22	br i1 1, label %"2", label %"10"
238:
24	br label %"9"
259:
26	br i1 1, label %"13", label %"14"
2713:
28        br label %"10"
2914:
30        br label %"10"
3110:
32        br label %"8"
333:
34	br label %"4"
354:
36	ret void
37}
38; CHECK-NOT: =>
39; CHECK: [0] 0 => <Function Return>
40; CHECK-NEXT: [1] 7 => 3
41; STAT: 2 region - The # of regions
42; STAT: 1 region - The # of simple regions
43
44; BBIT: 0, 7, 1, 2, 5, 11, 6, 10, 8, 9, 13, 14, 12, 3, 4,
45; BBIT: 7, 1, 2, 5, 11, 6, 10, 8, 9, 13, 14, 12,
46
47; RNIT: 0, 7 => 3, 3, 4,
48; RNIT: 7, 1, 2, 5, 11, 6, 10, 8, 9, 13, 14, 12,
49