[PATCH] improve vectorizers by removing cost of unnecessary truncs and exts.

Sam Parker sam.parker at arm.com
Mon May 11 03:57:20 PDT 2015


Hi,

 

I've attached a patch to both the loop vectorizer and slp-vectorizer which
checks to see whether truncs and extensions would actually be required if
the code was vectorized. This is so that the vectorizers understand that the
cost of these instructions is effectively zero if vectorization happens.
This is helpful when working on smaller data types, such as i8 and i16, that
do not have native support in general purpose registers, but are supported
in vector register files.

 

Regards,

Sam

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150511/72404eef/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vectorizer.patch
Type: application/octet-stream
Size: 4574 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150511/72404eef/attachment.obj>


More information about the llvm-commits mailing list