[PATCH][X86] Adjust cost of FP_TO_UINT v8f32->v8i32

Adam Nemet anemet at apple.com
Thu Mar 27 15:48:38 PDT 2014

There is no direct AVX instruction to convert to unsigned.  I have some ideas
how we may be able to do this with three vector instructions but the current
backend just bails on this to get it scalarized.

See the comment why we need to adjust the cost returned by BasicTTI.

The test is a bit roundabout (and checks assembly rather than bit code) because
I'd like it to work even if at some point we could vectorize this conversion.

Fixes <rdar://problem/16371920>


-------------- next part --------------
A non-text attachment was scrubbed...
Name: X86-Adjust-cost-of-FP_TO_UINT-v8f32-v8i32.patch
Type: application/octet-stream
Size: 2810 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140327/4844a7c7/attachment.obj>

More information about the llvm-commits mailing list