[PATCH] D94779: [Clang] Ensure vector predication pragma is ignored only when vectorization width is 1.
Florian Hahn via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Jan 18 03:52:08 PST 2021
fhahn added a comment.
> This ensures that the Clang loop pragma vectorize_predicate([enable|disable]) is ignored
> when vectorize_width(1) is also used, since that effectively disables vectorization.
Could you elaborate *why* it `vectorize_predicate` should be ignored when `vectorize_width(1)`? In general, I do not think that Clang silently ignoring the pragma is great for the user experience. If we can detect cases where we know the pragma will be ignored, could we at least warn the user?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D94779/new/
https://reviews.llvm.org/D94779
More information about the cfe-commits
mailing list