Kill and collapse outstanding DomainValues.
[oota-llvm.git] / test / Analysis / RegionInfo / loops_1.ll
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
6 define internal fastcc zeroext i8 @loops_1() nounwind {
7 entry:
8   br i1 1, label %outer , label %a
9
10 a:
11   br label %body
12
13 outer:
14   br label %body
15
16 body:
17   br i1 1, label %land, label %if
18
19 land:
20   br i1 1, label %exit, label %end
21
22 exit:
23   br i1 1, label %if, label %end
24
25 if:
26   br label %outer
27
28 end:
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,