Bug ID: 41125
           Summary: Difference in undef vector simplification
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Scalar Optimizations

define <4 x i32> @test_urem_div_undef(<4 x i32> %X) nounwind readnone {
  %urem = urem <4 x i32> %X, <i32 5, i32 5, i32 undef, i32 5>
  %cmp = icmp eq <4 x i32> %urem, <i32 0, i32 0, i32 0, i32 0>
  %ret = zext <4 x i1> %cmp to <4 x i32>
  ret <4 x i32> %ret

-instsimplify says it's zeroinitializer
but codegen will say it's splat of `1`.

You are receiving this mail because:
You are on the CC list for the bug.
llvm-bugs mailing list

Reply via email to