[PATCH] D96021: [LoopVectorize] NFC: Move UserVF feasibility checks to separate function.
Sander de Smalen via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 4 05:16:10 PST 2021
sdesmalen created this revision.
Herald added a subscriber: hiraditya.
sdesmalen requested review of this revision.
Herald added a project: LLVM.
This patch is NFC and cleans up `computeFeasibleMaxVF()` by moving all
validity checking (and possibly clamping) of UserVF to a separate function
`computeFeasibleUserVF()`.
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/D96021
Files:
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D96021.321390.patch
Type: text/x-patch
Size: 10528 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210204/a143da04/attachment.bin>
More information about the llvm-commits
mailing list