1 ; RUN: opt < %s -simplifycfg -S | \
2 ; RUN: not grep {icmp eq}
4 ; Check that simplifycfg deletes a dead 'seteq' instruction when it
5 ; folds a conditional branch into a switch instruction.
11 define void @testcfg(i32 %V) {
12 %C = icmp eq i32 %V, 18 ; <i1> [#uses=1]
13 %D = icmp eq i32 %V, 180 ; <i1> [#uses=1]
14 %E = or i1 %C, %D ; <i1> [#uses=1]
15 br i1 %E, label %L1, label %Sw
17 switch i32 %V, label %L1 [
24 L2: ; preds = %Sw, %Sw