[PATCH] Fix for previously reverted SLPVectorizer cost model improvement

Tyler Nowicki tnowicki at apple.com
Thu Apr 3 14:44:45 PDT 2014


Hi,

This patch modifies r205260 which was previously reverted by r205018 because it a crash. The original patch by Arch Robison and Arnold Schwaighofer.

This patch stops the SLP vectorizer from trying to vectorize a call that is not trivially vectorizable. An intrinsic is not trivially vectorized if any of the arguments cannot be simply packed together into a tuple. For example, the call to CTLZ cannot be trivially replaced with a vector intrinsic because the second parameter is scalar in both its scalar and vector forms.

Tyler Nowicki

-------------- next part --------------
A non-text attachment was scrubbed...
Name: slp_insertelements_fix2.patch
Type: application/octet-stream
Size: 14471 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140403/f8481a0d/attachment.obj>


More information about the llvm-commits mailing list