UndefValuesMerge.ll 297 B

12345678910111213
  1. ; RUN: opt < %s -mem2reg -S | not grep phi
  2. define i32 @testfunc(i1 %C, i32 %i, i8 %j) {
  3. %I = alloca i32 ; <i32*> [#uses=2]
  4. br i1 %C, label %T, label %Cont
  5. T: ; preds = %0
  6. store i32 %i, i32* %I
  7. br label %Cont
  8. Cont: ; preds = %T, %0
  9. %Y = load i32, i32* %I ; <i32> [#uses=1]
  10. ret i32 %Y
  11. }