[PATCH][X86] Adjust cost of FP_TO_UINT v8f32->v8i32
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 2810 bytes
Desc: not available
More information about the llvm-commits