• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; This test checks to make sure phi nodes are updated properly
2;
3; RUN: opt < %s -tailduplicate -disable-output
4
5define i32 @test(i1 %c, i32 %X, i32 %Y) {
6	br label %L
7L:		; preds = %F, %0
8	%A = add i32 %X, %Y		; <i32> [#uses=1]
9	br i1 %c, label %T, label %F
10F:		; preds = %L
11	br i1 %c, label %L, label %T
12T:		; preds = %F, %L
13	%V = phi i32 [ %A, %L ], [ 0, %F ]		; <i32> [#uses=1]
14	ret i32 %V
15}
16
17