[AArch64] Fix bug in prolog clobbering live reg when shrink wrapping.
[oota-llvm.git] / test / Analysis / RegionInfo / cond_loop.ll
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
7 define void @normal_condition() nounwind {
8 5:
9         br label %"0"
10
11 0:
12         br label %"1"
13 1:
14         br i1 1, label %"2", label %"3"
15 2:
16         ret void
17 3:
18         br i1 1, label %"1", label %"4"
19 4:
20         br label %"0"
21 }
22
23 ; CHECK-NOT: =>
24 ; CHECK: [0] 5 => <Function Return>
25 ; CHECK: [1] 0 => 2
26
27 ; STAT: 2 region - The # of regions
28 ; STAT: 1 region - The # of simple regions
29
30 ; BBIT: 5, 0, 1, 2, 3, 4,
31 ; BBIT: 0, 1, 3, 4,
32
33 ; RNIT: 5, 0 => 2, 2,
34 ; RNIT: 0, 1, 3, 4,