[PATCH] D69897: Add #pragma clang loop aligned

Roman Lebedev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 6 11:32:39 PST 2019


lebedev.ri added a comment.

In D69897#1735961 <https://reviews.llvm.org/D69897#1735961>, @Meinersbur wrote:

> Please see my comments in D69900 <https://reviews.llvm.org/D69900> as well.
>
> For the font-end side, I suggest the syntax `vectorize_assume_alignment(32)` instead. We also need to define what this assumes to be aligned. The first element of the array? Every array element? In an array-of-structs, the struct of the element that is accessed? Scalars?


It would be really best if this could just make use of `CodeGenFunction::EmitAlignmentAssumption()`,
else this is a heavy hammer with loose handle.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D69897/new/

https://reviews.llvm.org/D69897





More information about the cfe-commits mailing list