[PATCH] D69897: Add #pragma clang loop aligned

HAPPY Mahto via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 6 10:07:42 PST 2019


On Wed, Nov 6, 2019 at 10:43 PM Hal Finkel via Phabricator <
reviews at reviews.llvm.org> wrote:

> hfinkel added inline comments.
>
>
> ================
> Comment at: clang/docs/LanguageExtensions.rst:3135
> +
> +This predicates all the array references inside the loop to be aligned.
> The aligned access to them can increase fetch time and increase the
> performance.
> +
> ----------------
> lebedev.ri wrote:
> > What does this actually mean, in the end?
> > Will it assume that whatever alignment is required
> > for whatever vectorization width chosen,
> > is the actual alignment?
>
Currently, it is using 32 bit.

> Also, just arrays, or also pointers?
>
> By pointers, if you mean pointers to arrays? Then Yes.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20191106/3a94fbbd/attachment.html>


More information about the cfe-commits mailing list