[PATCH] D141003: [LoopVectorizer] Fix inloop reductions mask placement

Dave Green via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 4 10:46:51 PST 2023


dmgreen created this revision.
dmgreen added reviewers: fhahn, kmclaughlin, david-arm, SjoerdMeijer, Ayal.
Herald added subscribers: shiva0217, mstorsjo, rogfer01, bollu, hiraditya.
Herald added a project: All.
dmgreen requested review of this revision.
Herald added subscribers: pcwang-thead, vkmr.
Herald added a project: LLVM.

The validation of vplans could fail if an inloop reduction was created with a block-in mask that did not dominate the reduction. This makes sure that the insert point is set when creating the mask, to ensure it dominates the reduction.


https://reviews.llvm.org/D141003

Files:
  llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
  llvm/test/Transforms/LoopVectorize/reduction-inloop.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D141003.486340.patch
Type: text/x-patch
Size: 19798 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230104/c7cac722/attachment.bin>


More information about the llvm-commits mailing list