Home | History | Annotate | Download | only in InstCombine
      1 ; RUN: opt < %s -instcombine -S | not grep add
      2 ; RUN: opt < %s -instcombine -S | not grep mul
      3 ; PR2330
      4 
      5 define i1 @f(i32 %x, i32 %y) nounwind {
      6 entry:
      7   %A = add i32 %x, 5
      8   %B = add i32 %y, 5
      9   %C = icmp eq i32 %A, %B
     10   ret i1 %C
     11 }
     12 
     13 define i1 @g(i32 %x, i32 %y) nounwind {
     14 entry:
     15   %A = mul i32 %x, 5
     16   %B = mul i32 %y, 5
     17   %C = icmp eq i32 %A, %B
     18   ret i1 %C
     19 }
     20