[PATCH] D134422: Scalarize calls to masked functions in LV

Graham Hunter via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 22 02:16:30 PDT 2022


huntergr created this revision.
huntergr added reviewers: reames, fhahn, david-arm.
Herald added a subscriber: hiraditya.
Herald added a project: All.
huntergr requested review of this revision.
Herald added subscribers: llvm-commits, pcwang-thead.
Herald added a project: LLVM.

This patch adds support for scalarizing calls to a function when there is a vector variant that cannot be used, either because there isn't a masked variant or because the cost model indicated a VF with out a masked variant was better.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D134422

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D134422.462118.patch
Type: text/x-patch
Size: 33346 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220922/725dc530/attachment.bin>


More information about the llvm-commits mailing list