[PATCH] D89322: [LV] Initial VPlan cost modelling
Bardia Mahjour via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 13 10:32:35 PDT 2020
bmahjour added inline comments.
================
Comment at: llvm/lib/Transforms/Vectorize/VPlan.h:372
+/// holds the CostModel and Legailty pointers, which can be expanded as needed.
+struct VPCostContext {
+ /// The original CostModel, which is currently used for getting instruction
----------------
The cost-model is conceptually the structure that knows all about calculating costs. Instead of packaging the cost-model and legality and send it to the VPlan, wouldn't it make more sense to send the VPlan to the cost-model as it already has access to legality?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D89322/new/
https://reviews.llvm.org/D89322
More information about the llvm-commits
mailing list