[PATCH] Disable load/store vectorization for types with padding bytes
Nadav Rotem
nrotem at apple.com
Wed Apr 24 08:58:06 PDT 2013
On Apr 24, 2013, at 2:19 AM, Daisuke Takahashi <dtakahashi42 at gmail.com> wrote:
> In my understanding, the cost model gives up the vectorization when above conditions are met. My patch says there are two different conditions that the optimizer should not vectorize memory instructions,
> 1. the target pointer is not an array (I suppose, stride == 0),
> 2. the size of array and vector elements are different (the new one).
> Those conditions seems to be independent, and both conditions should be concerned.
Yes, you are correct, stride==0 means that we were not able to find the stride and we need to scalarize.
Thanks,
Nadav
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130424/15e4f5f6/attachment.html>
More information about the llvm-commits
mailing list