1 ; Test merging of blocks with phi nodes.
3 ; RUN: opt < %s -simplifycfg -S | not grep N:
6 define i32 @test(i1 %a) {
8 br i1 %a, label %N, label %M
12 ; It's ok to merge N and M because the incoming values for W are the
13 ; same for both cases...
14 %W = phi i32 [ 2, %N ], [ 2, %Q ] ; <i32> [#uses=1]
15 %R = add i32 %W, 1 ; <i32> [#uses=1]