[llvm] [VPlan] Document current status. (PR #85689)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Thu May 16 03:50:57 PDT 2024


================
@@ -19,6 +19,49 @@ candidates. It serves for both optimizing candidates including estimating their
 cost reliably, and for performing their final translation into IR. This
 facilitates dealing with multiple vectorization candidates.
 
+Current Status
+==============
+VPlan is currently used to drive code-generation in LoopVectorize. VPlans are
+constructed after all cost-based and most legality-related decisions have been
----------------
fhahn wrote:

Costs are computed first, when building a VPlan they are used to make decision (what to widen, what to scalarize and so on). After building the VPlans, the best VF is chosen using the legacy cost model, but that may soon change.

https://github.com/llvm/llvm-project/pull/85689


More information about the llvm-commits mailing list