blob: 3b152d2f565dbf5983e5b40868de992f361cb01c [file] [log] [blame]
Tobias Grosser336734a2010-07-22 07:46:31 +00001; 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 @handle_compress() nounwind {
7entry:
8 br label %outer
9
10outer:
11 br label %body
12
13body:
14 br i1 1, label %body.i, label %if.end
15
16body.i:
17 br i1 1, label %end, label %if.end
18
19if.end:
20 br label %if.then64
21
22if.then64:
23 br label %outer
24
25end:
26 ret i8 1
27}
28; CHECK-NOT: =>
29; CHECK: [0] entry => <Function Return>
30; CHECK-NEXT: [1] outer => end
31; STAT: 2 region - The # of regions
32; STAT: 1 region - The # of simple regions
33
34; BBIT: entry, outer, body, body.i, end, if.end, if.then64,
35; BBIT: outer, body, body.i, if.end, if.then64,
36
37; RNIT: entry, outer => end, end,
38; RNIT: outer, body, body.i, if.end, if.then64,