Tobias Grosser | f96b006 | 2010-07-22 07:46:31 +0000 | [diff] [blame^] | 1 | ; RUN: opt -regions -analyze < %s |
2 | ; RUN: opt -regions -stats < %s |& FileCheck -check-prefix=STAT %s | ||||
3 | |||||
4 | define void @normal_condition() nounwind { | ||||
5 | 0: | ||||
6 | br label %"1" | ||||
7 | 1: | ||||
8 | br i1 1, label %"2", label %"3" | ||||
9 | 2: | ||||
10 | br label %"2" | ||||
11 | 3: | ||||
12 | br label %"4" | ||||
13 | 4: | ||||
14 | ret void | ||||
15 | } | ||||
16 | ; CHECK-NOT: => | ||||
17 | ; CHECK: [0] 0 => <Function Return> | ||||
18 | ; CHECK: [1] 1 => 4 | ||||
19 | ; STAT: 2 region - The # of regions | ||||
20 | ; STAT: 1 region - The # of simple regions |