1 ; RUN: llvm-as < %s | opt -simplifycfg | llvm-dis | not grep br
4 define i1 @_ZN4llvm11SetCondInst7classofEPKNS_11InstructionE({ i32, i32 }* %I) {
6 %tmp.1.i = getelementptr { i32, i32 }* %I, i64 0, i32 1 ; <i32*> [#uses=1]
7 %tmp.2.i = load i32* %tmp.1.i ; <i32> [#uses=6]
8 %tmp.2 = icmp eq i32 %tmp.2.i, 14 ; <i1> [#uses=1]
9 br i1 %tmp.2, label %shortcirc_done.4, label %shortcirc_next.0
10 shortcirc_next.0: ; preds = %entry
11 %tmp.6 = icmp eq i32 %tmp.2.i, 15 ; <i1> [#uses=1]
12 br i1 %tmp.6, label %shortcirc_done.4, label %shortcirc_next.1
13 shortcirc_next.1: ; preds = %shortcirc_next.0
14 %tmp.11 = icmp eq i32 %tmp.2.i, 16 ; <i1> [#uses=1]
15 br i1 %tmp.11, label %shortcirc_done.4, label %shortcirc_next.2
16 shortcirc_next.2: ; preds = %shortcirc_next.1
17 %tmp.16 = icmp eq i32 %tmp.2.i, 17 ; <i1> [#uses=1]
18 br i1 %tmp.16, label %shortcirc_done.4, label %shortcirc_next.3
19 shortcirc_next.3: ; preds = %shortcirc_next.2
20 %tmp.21 = icmp eq i32 %tmp.2.i, 18 ; <i1> [#uses=1]
21 br i1 %tmp.21, label %shortcirc_done.4, label %shortcirc_next.4
22 shortcirc_next.4: ; preds = %shortcirc_next.3
23 %tmp.26 = icmp eq i32 %tmp.2.i, 19 ; <i1> [#uses=1]
24 br label %UnifiedReturnBlock
25 shortcirc_done.4: ; preds = %shortcirc_next.3, %shortcirc_next.2, %shortcirc_next.1, %shortcirc_next.0, %entry
26 br label %UnifiedReturnBlock
27 UnifiedReturnBlock: ; preds = %shortcirc_done.4, %shortcirc_next.4
28 %UnifiedRetVal = phi i1 [ %tmp.26, %shortcirc_next.4 ], [ true, %shortcirc_done.4 ] ; <i1> [#uses=1]