[PATCH] D132458: [LoopVectorize] Support masked function vectorization

Graham Hunter via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 23 03:45:48 PDT 2022


huntergr created this revision.
huntergr added reviewers: david-arm, fhahn, dmgreen, reames.
Herald added subscribers: shiva0217, rogfer01, hiraditya, kristof.beyls.
Herald added a project: All.
huntergr requested review of this revision.
Herald added subscribers: llvm-commits, vkmr.
Herald added a project: LLVM.

This patch allows loop vectorization using masked functions, either in cases where a mask is required (conditional execution in the loop, or tail folding) or where it isn't but the only available vectorized function variants are masked.

Some of the code was originally written by @paulwalker-arm


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D132458

Files:
  llvm/include/llvm/Analysis/VectorUtils.h
  llvm/lib/Transforms/Vectorize/LoopVectorizationLegality.cpp
  llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
  llvm/lib/Transforms/Vectorize/VPRecipeBuilder.h
  llvm/lib/Transforms/Vectorize/VPlan.h
  llvm/lib/Transforms/Vectorize/VPlanValue.h
  llvm/test/Transforms/LoopVectorize/AArch64/masked-call.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D132458.454772.patch
Type: text/x-patch
Size: 21683 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220823/aa0ce9cd/attachment-0001.bin>


More information about the llvm-commits mailing list