source: icGREP/icgrep-devel/llvm-3.8.0.src/test/Analysis/RegionInfo/loops_1.ll @ 5027

Last change on this file since 5027 was 5027, checked in by cameron, 3 years ago

Upgrade to llvm 3.8

File size: 942 bytes
Line 
1; REQUIRES: asserts
2; RUN: opt -regions -analyze < %s | FileCheck %s
3; 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
6
7define internal fastcc zeroext i8 @loops_1() nounwind {
8entry:
9  br i1 1, label %outer , label %a
10
11a:
12  br label %body
13
14outer:
15  br label %body
16
17body:
18  br i1 1, label %land, label %if
19
20land:
21  br i1 1, label %exit, label %end
22
23exit:
24  br i1 1, label %if, label %end
25
26if:
27  br label %outer
28
29end:
30  ret i8 1
31}
32; CHECK-NOT: =>
33; CHECK: [0] entry => <Function Return>
34; CHECK-NEXT: [1] entry => end
35; STAT: 2 region - The # of regions
36
37; BBIT: entry, outer, body, land, exit, if, end, a,
38; BBIT: entry, outer, body, land, exit, if, a,
39
40; RNIT: entry => end, end,
41; RNIT: entry, outer, body, land, exit, if, a,
Note: See TracBrowser for help on using the repository browser.