[PATCH] D156910: [clang] Add pragma force_vectorize
Maksim Kita via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 2 09:23:48 PDT 2023
kitaisreal added a comment.
It seems that maybe it is better to specify pragma like this, without `(enable)`.
#pragma clang loop force_vectorize
for (size_t i = 0; i < size; ++i) {
sum += data[i];
}
But maybe ability to enable or disable `force_vectorize` can be helpful if we will have pragma for code sections. That way client can disable force vectorization for specific loop.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D156910/new/
https://reviews.llvm.org/D156910
More information about the llvm-commits
mailing list