[PATCH] D121690: [LoopVectorize] Don't collect some values as scalars
Zhou Kaipeng via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 15 05:41:06 PDT 2022
TKaipeng created this revision.
Herald added a subscriber: hiraditya.
Herald added a project: All.
TKaipeng requested review of this revision.
Herald added subscribers: llvm-commits, alextsao1999.
Herald added a project: LLVM.
Value used outside the loop is to be associated with a ReplicateRecipe which is non-uniform. If VF is scalable, it isn't a legal recipe type.
Therefore, don't mark this kind of value as scalar after vectorization.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D121690
Files:
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
llvm/test/Transforms/LoopVectorize/value-use-outside-scalable.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D121690.415397.patch
Type: text/x-patch
Size: 7922 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220315/8b119506/attachment.bin>
More information about the llvm-commits
mailing list