blob: ac409ec1bb25c4b23ff3fb0190ba413cdefe5cc8 [file] [log] [blame]
Jan Wen Voung6dc30762013-03-12 16:27:52 +00001; REQUIRES: asserts
Tobias Grosser336734a2010-07-22 07:46:31 +00002; RUN: opt -regions -analyze < %s | FileCheck %s
Chandler Carruth5da53432012-07-02 18:37:59 +00003; RUN: opt -regions -stats < %s 2>&1 | FileCheck -check-prefix=STAT %s
4; RUN: opt -regions -print-region-style=bb -analyze < %s 2>&1 | FileCheck -check-prefix=BBIT %s
5; RUN: opt -regions -print-region-style=rn -analyze < %s 2>&1 | FileCheck -check-prefix=RNIT %s
Tobias Grosser336734a2010-07-22 07:46:31 +00006
Tobias Grosser336734a2010-07-22 07:46:31 +00007define internal fastcc zeroext i8 @handle_compress() nounwind {
8entry:
9 br label %outer
10
11outer:
12 br label %body
13
14body:
15 br i1 1, label %body.i, label %if.end
16
17body.i:
18 br i1 1, label %end, label %if.end
19
20if.end:
21 br label %if.then64
22
23if.then64:
24 br label %outer
25
26end:
27 ret i8 1
28}
29; CHECK-NOT: =>
30; CHECK: [0] entry => <Function Return>
31; CHECK-NEXT: [1] outer => end
32; STAT: 2 region - The # of regions
33; STAT: 1 region - The # of simple regions
34
35; BBIT: entry, outer, body, body.i, end, if.end, if.then64,
36; BBIT: outer, body, body.i, if.end, if.then64,
37
38; RNIT: entry, outer => end, end,
39; RNIT: outer, body, body.i, if.end, if.then64,