Home | History | Annotate | Download | only in InstCombine
      1 ; RUN: opt < %s -instcombine -S | grep icmp
      2 ; PR1678
      3 
      4 @A = weak alias void (), void ()* @B		; <void ()*> [#uses=1]
      5 
      6 define weak void @B() {
      7        ret void
      8 }
      9 
     10 define i32 @active() {
     11 entry:
     12 	%"alloca point" = bitcast i32 0 to i32		; <i32> [#uses=0]
     13 	%tmp1 = icmp ne void ()* @A, null		; <i1> [#uses=1]
     14 	%tmp12 = zext i1 %tmp1 to i32		; <i32> [#uses=1]
     15 	ret i32 %tmp12
     16 }
     17