xref: /llvm-project/llvm/test/Transforms/SimpleLoopUnswitch/2006-06-27-DeadSwitchCase.ll (revision 2eb40aadda48e4470bd1bf2cba90a7d593690a6b)
1; RUN: opt < %s -passes="loop-mssa(simple-loop-unswitch)" -verify-memoryssa -disable-output
2
3define void @init_caller_save() {
4entry:
5  br label %cond_true78
6
7cond_true78:    ; preds = %bb75, %entry
8  %i.0.0 = phi i32 [ 0, %entry ], [ %tmp74.0, %bb75 ]    ; <i32> [#uses=2]
9  br label %bb54
10
11bb54:    ; preds = %cond_true78, %bb31
12  br i1 false, label %bb75, label %cond_true64
13
14cond_true64:    ; preds = %bb54
15  switch i32 %i.0.0, label %cond_next20 [
16     i32 17, label %bb31
17     i32 18, label %bb31
18  ]
19
20cond_next20:    ; preds = %cond_true64
21  br label %bb31
22
23bb31:    ; preds = %cond_true64, %cond_true64, %cond_next20
24  %iftmp.29.1 = phi i32 [ 0, %cond_next20 ], [ 0, %cond_true64 ], [ 0, %cond_true64 ]    ; <i32> [#uses=0]
25  br label %bb54
26
27bb75:    ; preds = %bb54
28  %tmp74.0 = add i32 %i.0.0, 1    ; <i32> [#uses=1]
29  br label %cond_true78
30}
31
32