source: icGREP/icgrep-devel/llvm-3.8.0.src/test/Analysis/RegionInfo/infinite_loop_3.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: 1.1 KB
Line 
1; REQUIRES: asserts
2; RUN: opt -regions -analyze < %s
3; RUN: opt -regions -stats < %s 2>&1 | FileCheck -check-prefix=STAT %s
4
5; RUN: opt -regions -print-region-style=bb  -analyze < %s 2>&1 | FileCheck -check-prefix=BBIT %s
6; RUN: opt -regions -print-region-style=rn  -analyze < %s 2>&1 | FileCheck -check-prefix=RNIT %s
7
8define void @normal_condition() nounwind {
90:
10        br label %"7"
117:
12        br i1 1, label %"1", label %"8"
131:
14        br i1 1, label %"2", label %"3"
152:
16        br label %"5"
175:
18        br i1 1, label %"11", label %"12"
1911:
20        br label %"6"
2112:
22        br label %"6"
236:
24        br label %"2"
258:
26        br label %"9"
279:
28        br i1 1, label %"13", label %"14"
2913:
30        br label %"10"
3114:
32        br label %"10"
3310:
34        br label %"8"
353:
36        br label %"4"
374:
38        ret void
39}
40; CHECK-NOT: =>
41; CHECK: [0] 0 => <Function Return>
42; CHECK-NEXT: [1] 1 => 3
43; CHECK-NEXT: [1] 7 => 1
44; STAT: 3 region - The # of regions
45; STAT: 2 region - The # of simple regions
46
47; BBIT: 0, 7, 1, 2, 5, 11, 6, 12, 3, 4, 8, 9, 13, 10, 14,
48; BBIT: 7, 8, 9, 13, 10, 14,
49; BBIT: 1, 2, 5, 11, 6, 12,
50
51; RNIT: 0, 7 => 1, 1 => 3, 3, 4,
52; RNIT: 7, 8, 9, 13, 10, 14,
53; RNIT: 1, 2, 5, 11, 6, 12,
Note: See TracBrowser for help on using the repository browser.