• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: opt -regions -analyze < %s | FileCheck %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 internal fastcc zeroext i8 @loops_1() nounwind {
7entry:
8  br i1 1, label %outer , label %a
9
10a:
11  br label %body
12
13outer:
14  br label %body
15
16body:
17  br i1 1, label %land, label %if
18
19land:
20  br i1 1, label %exit, label %end
21
22exit:
23  br i1 1, label %if, label %end
24
25if:
26  br label %outer
27
28end:
29  ret i8 1
30}
31; CHECK-NOT: =>
32; CHECK: [0] entry => <Function Return>
33; CHECK-NEXT: [1] entry => end
34; STAT: 2 region - The # of regions
35
36; BBIT: entry, outer, body, land, exit, if, end, a,
37; BBIT: entry, outer, body, land, exit, if, a,
38
39; RNIT: entry => end, end,
40; RNIT: entry, outer, body, land, exit, if, a,
41