Home | History | Annotate | Download | only in GVN
      1 ; RUN: opt < %s -gvn -enable-pre -S | grep "b.pre"
      2 
      3 define i32 @main(i32 %p, i32 %q) {
      4 block1:
      5     %cmp = icmp eq i32 %p, %q 
      6 	br i1 %cmp, label %block2, label %block3
      7 
      8 block2:
      9  %a = add i32 %p, 1
     10  br label %block4
     11 
     12 block3:
     13   br label %block4
     14 
     15 block4:
     16   %b = add i32 %p, 1
     17   ret i32 %b
     18 }
     19