When removing a function from the function set and adding it to deferred, we
[llvm.git] / test / Transforms / ADCE / basictest.ll
blob378d70288f3f5992e50e3cf1c132686a93cdeb45
1 ; RUN: opt < %s -adce -simplifycfg | llvm-dis
3 define i32 @Test(i32 %A, i32 %B) {
4 BB1:
5         br label %BB4
7 BB2:            ; No predecessors!
8         br label %BB3
10 BB3:            ; preds = %BB4, %BB2
11         %ret = phi i32 [ %X, %BB4 ], [ %B, %BB2 ]               ; <i32> [#uses=1]
12         ret i32 %ret
14 BB4:            ; preds = %BB1
15         %X = phi i32 [ %A, %BB1 ]               ; <i32> [#uses=1]
16         br label %BB3