source: icGREP/icgrep-devel/llvm-3.8.0.src/test/Analysis/RegionInfo/multiple_exiting_edge.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; RUN: opt -regions -print-region-style=bb  -analyze < %s 2>&1 | FileCheck -check-prefix=BBIT %s
2; RUN: opt -regions -print-region-style=rn  -analyze < %s 2>&1 | FileCheck -check-prefix=RNIT %s
3
4define void @normal_condition_0() nounwind {
5bb38:                                             ; preds = %bb34, %bb34, %bb37
6  switch i32 undef, label %bb42 [
7    i32 67, label %bb42
8    i32 90, label %bb41
9  ]
10bb41:                                             ; preds = %bb38
11  br label %bb42
12bb42:                                             ; preds = %bb38, %bb38, %bb41
13  ret void
14}
15
16; BBIT: bb38, bb42, bb41,
17; BBIT: bb38, bb41,
18
19; RNIT: bb38 => bb42, bb42,
20; RNIT: bb38, bb41,
21
22define void @normal_condition_1() nounwind {
23bb38:                                             ; preds = %bb34, %bb34, %bb37
24  switch i32 undef, label %bb41 [
25    i32 67, label %bb42
26    i32 90, label %bb42
27  ]
28bb41:                                             ; preds = %bb38
29  br label %bb42
30bb42:                                             ; preds = %bb38, %bb38, %bb41
31  ret void
32}
33
34; BBIT: bb38, bb41, bb42,
35; BBIT: bb38, bb41,
36
37; RNIT: bb38 => bb42, bb42,
38; RNIT: bb38, bb41,
Note: See TracBrowser for help on using the repository browser.