1 ; Test merging of blocks that only have PHI nodes in them. This tests the case
2 ; where the mergedinto block doesn't have any PHI nodes, and is in fact
3 ; dominated by the block-to-be-eliminated
5 ; RUN: llvm-as < %s | opt -simplifycfg | llvm-dis | not grep N:
10 define i32 @test(i1 %a, i1 %b) {
12 br i1 %c, label %N, label %P
15 br i1 %d, label %N, label %Q
19 %W = phi i32 [0, %0], [1, %Q], [2, %P]
20 ; This block should be foldable into M