[PATCH] D96546: [LoopVectorize] NFCI: BuildVPlansWithVPRecipes to include ScalableVFs.

Sander de Smalen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 11 14:00:07 PST 2021


sdesmalen created this revision.
Herald added subscribers: tschuett, bmahjour, psnobl, rogfer01, bollu, hiraditya.
sdesmalen requested review of this revision.
Herald added a subscriber: vkmr.
Herald added a project: LLVM.

This patch makes sure that the loopvectorizer generates VPlans for
all power of two VFs upto the provided maximum VFs (can be both fixed
and/or scalable). This patch is intended to be a non-functional change,
because selectVectorizationFactor does not automatically pick any of
the scalable VPlans yet.

This patch is a preparatory patch with the ultimate goal of making
`computeMaxVF()` return both a max fixed VF and a max scalable VF,
so that `selectVectorizationFactor()` can pick the most cost-effective
vectorization factor.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D96546

Files:
  llvm/lib/Transforms/Vectorize/LoopVectorizationPlanner.h
  llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D96546.323143.patch
Type: text/x-patch
Size: 8167 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210211/8737a206/attachment.bin>


More information about the llvm-commits mailing list