Revert r354244 "[DAGCombiner] Eliminate dead stores to stack."
[llvm-complete.git] / test / Analysis / RegionInfo / cond_loop.ll
blob2d0c7348eba3e8b13a7aaf7f798103092bcc9859
1 ; REQUIRES: asserts
2 ; RUN: opt -regions -analyze < %s | FileCheck %s
3 ; RUN: opt -regions -stats -disable-output < %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
7 ; RUN: opt < %s -passes='print<regions>' 2>&1 | FileCheck %s
9 define void @normal_condition() nounwind {
11         br label %"0"
14         br label %"1"
16         br i1 1, label %"2", label %"3"
18         ret void
20         br i1 1, label %"1", label %"4"
22         br label %"0"
25 ; CHECK-NOT: =>
26 ; CHECK: [0] 5 => <Function Return>
27 ; CHECK: [1] 0 => 2
29 ; STAT: 2 region - The # of regions
30 ; STAT: 1 region - The # of simple regions
32 ; BBIT: 5, 0, 1, 2, 3, 4,
33 ; BBIT: 0, 1, 3, 4,
35 ; RNIT: 5, 0 => 2, 2,
36 ; RNIT: 0, 1, 3, 4,