Fix comment.
[oota-llvm.git] / test / Analysis / RegionInfo / block_sort.ll
1 ; RUN: opt -regions -analyze < %s | FileCheck %s
2 ; RUN: opt -regions -stats -analyze < %s 2>&1 | FileCheck -check-prefix=STAT %s
3 ; RUN: opt -regions -print-region-style=bb  -analyze < %s 2>&1 | FileCheck -check-prefix=BBIT %s
4 ; RUN: opt -regions -print-region-style=rn  -analyze < %s 2>&1 | FileCheck -check-prefix=RNIT %s
5
6 define void @BZ2_blockSort() nounwind {
7 start:
8   br label %while
9
10 while:
11   br label %while.body134.i.i
12
13 while.body134.i.i:
14   br i1 1, label %end, label %w
15
16 w:
17   br label %if.end140.i.i
18
19 if.end140.i.i:
20   br i1 1, label %while.end186.i.i, label %if.end183.i.i
21
22 if.end183.i.i:
23   br label %while.body134.i.i
24
25 while.end186.i.i:
26   br label %while
27
28 end:
29   ret void
30 }
31 ; CHECK-NOT: =>
32 ; CHECK: [0] start => <Function Return>
33 ; CHECK: [1] while => end
34
35 ; STAT: 2 region - The # of regions
36 ; STAT: 1 region - The # of simple regions
37
38 ; BBIT: start, while, while.body134.i.i, end, w, if.end140.i.i, while.end186.i.i, if.end183.i.i,
39 ; BBIT: while, while.body134.i.i, w, if.end140.i.i, while.end186.i.i, if.end183.i.i,
40
41 ; RNIT: start, while => end, end,
42 ; RNIT: while, while.body134.i.i, w, if.end140.i.i, while.end186.i.i, if.end183.i.i,