• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: opt < %s -adce -simplifycfg | llvm-dis
2
3define i32 @Test(i32 %A, i32 %B) {
4BB1:
5        br label %BB4
6
7BB2:            ; No predecessors!
8        br label %BB3
9
10BB3:            ; preds = %BB4, %BB2
11        %ret = phi i32 [ %X, %BB4 ], [ %B, %BB2 ]               ; <i32> [#uses=1]
12        ret i32 %ret
13
14BB4:            ; preds = %BB1
15        %X = phi i32 [ %A, %BB1 ]               ; <i32> [#uses=1]
16        br label %BB3
17}
18
19
20