[PATCH] D157484: [VPlan] Support scalable vectors in outer-loop vectorization

Florian Hahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 22 04:27:20 PDT 2023


fhahn accepted this revision.
fhahn added a comment.
This revision is now accepted and ready to land.

LGTM, thanks!



================
Comment at: llvm/lib/Transforms/Vectorize/LoopVectorize.cpp:7345
 // more than one is generated.
-static unsigned determineVPlanVF(const unsigned WidestVectorRegBits,
-                                 LoopVectorizationCostModel &CM) {
+static ElementCount determineVPlanVF(const TargetTransformInfo &TTI,
+                                     LoopVectorizationCostModel &CM) {
----------------
might be good to document here that this will pick a scalable VF if target supports scalable vectors or fixed one otherwise (before TODO)


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D157484/new/

https://reviews.llvm.org/D157484



More information about the llvm-commits mailing list