1 ;RUN: opt -mem2reg -S < %s | FileCheck %s
9 br i1 %c1, label %Store1, label %Store2
21 store i32 1, i32* %val
34 store i32 2, i32* %val
49 ; Phi inserted here should have operands appended deterministically
50 ; CHECK: %val.0 = phi i32 [ 1, %Store1 ], [ 2, %Store2 ], [ undef, %Block1 ], [ undef, %Block2 ], [ undef, %Block3 ], [ undef, %Block4 ], [ undef, %Block5 ], [ undef, %Block6 ], [ undef, %Block7 ], [ undef, %Block8 ], [ undef, %Block9 ], [ undef, %Block10 ], [ undef, %Block11 ], [ undef, %Block12 ], [ undef, %Block13 ], [ undef, %Block14 ], [ undef, %Block15 ], [ undef, %Block16 ]
51 %result = load i32, i32* %val