[PATCH] D110235: [LoopVectorize] Support reductions that store intermediary result
Igor Kirillov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 4 06:45:34 PST 2022
igor.kirillov updated this revision to Diff 405949.
igor.kirillov marked 2 inline comments as done.
igor.kirillov added a comment.
Add fix that prevents vectorization for the case when not a final reduction value stored in a loop invariant address.
Add test for this case.
Remove some unused code and rename a couple of IR variables in the `reduction-with-invariant-store.ll` test.
Fix incorrect phi node in `reduc_store_inside_unrolled` and `reduc_double_invariant_store` tests.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D110235/new/
https://reviews.llvm.org/D110235
Files:
llvm/include/llvm/Analysis/IVDescriptors.h
llvm/include/llvm/Analysis/LoopAccessAnalysis.h
llvm/include/llvm/Transforms/Vectorize/LoopVectorizationLegality.h
llvm/lib/Analysis/IVDescriptors.cpp
llvm/lib/Analysis/LoopAccessAnalysis.cpp
llvm/lib/Transforms/Vectorize/LoopVectorizationLegality.cpp
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
llvm/lib/Transforms/Vectorize/VPlan.cpp
llvm/test/Transforms/LoopVectorize/AArch64/scalable-reductions.ll
llvm/test/Transforms/LoopVectorize/reduction-with-invariant-store.ll
llvm/test/Transforms/LoopVectorize/vplan-printing.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D110235.405949.patch
Type: text/x-patch
Size: 34993 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220204/f673a89e/attachment-0001.bin>
More information about the llvm-commits
mailing list