[PATCH] Disable load/store vectorization for types with padding bytes
Arnold Schwaighofer
aschwaighofer at apple.com
Wed Apr 24 09:19:04 PDT 2013
Committed as r180196.
On Apr 24, 2013, at 10:58 AM, Nadav Rotem <nrotem at apple.com> wrote:
>
> 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
More information about the llvm-commits
mailing list