1 ; RUN: opt < %s -passes=adce,simplifycfg -simplifycfg-require-and-preserve-domtree=1 | llvm-dis
2 ; RUN: opt < %s -passes=adce | llvm-dis
4 define i32 @Test(i32 %A, i32 %B) {
8 BB2: ; No predecessors!
11 BB3: ; preds = %BB4, %BB2
12 %ret = phi i32 [ %X, %BB4 ], [ %B, %BB2 ] ; <i32> [#uses=1]
16 %X = phi i32 [ %A, %BB1 ] ; <i32> [#uses=1]