[PATCH] D158716: [RFC][LV] VPlan-based cost model
ShihPo Hung via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 24 01:12:59 PDT 2023
arcbbb created this revision.
Herald added subscribers: artagnon, tschuett, psnobl, rogfer01, bollu, hiraditya.
Herald added a project: All.
arcbbb requested review of this revision.
Herald added subscribers: llvm-commits, wangpc, vkmr.
Herald added a project: LLVM.
This patch follows D89322 <https://reviews.llvm.org/D89322> to add an initial skeleton of vplan-based cost model.
This difference is that instead of incorporating a cost() interface to VPRecipes,
all cost implementations are put together in VPlanCostModel.
This allows VPlanCostModel to concentrate on assigning costs to vplan,
thus seprating the cost model code from the vplan IR, similar to LLVM IR cost
modeling.
During the transition, it will still use the legacy model to obtain cost until
all cost calculation for recipes are implemented.
Please let me know if you agree with the main idea of this patch.
If there is a general consensus, I'll proceed to implement the cost for the
other recipes for review.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D158716
Files:
llvm/lib/Transforms/Vectorize/CMakeLists.txt
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
llvm/lib/Transforms/Vectorize/VPlan.h
llvm/lib/Transforms/Vectorize/VPlanCostModel.cpp
llvm/lib/Transforms/Vectorize/VPlanCostModel.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D158716.553030.patch
Type: text/x-patch
Size: 11272 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230824/bb2e3743/attachment.bin>
More information about the llvm-commits
mailing list