[PATCH] D75981: [LV] Create RT checks during planning, expose cost functions.
Evgeniy via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 1 00:14:45 PDT 2021
ebrevnov added inline comments.
================
Comment at: llvm/lib/Transforms/Vectorize/LoopVectorizationPlanner.h:193
+ InstructionCost ScalarCost)
+ : Width(Width), Cost(Cost), ScalarCost(ScalarCost) {}
----------------
Scalar cost is not VF depending so this doesn't look like the best place for it. Please take a look at https://reviews.llvm.org/D109678 where I propose to cache scalar cost inside code model. How do you like it? Will it work for you as well?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D75981/new/
https://reviews.llvm.org/D75981
More information about the llvm-commits
mailing list