[llvm] [RFC][LV] VPlan-based cost model (PR #67647)
Renato Golin via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 24 02:27:18 PDT 2024
================
@@ -370,6 +388,25 @@ class LoopVectorizationPlanner {
void adjustRecipesForReductions(VPBasicBlock *LatchVPBB, VPlanPtr &Plan,
VPRecipeBuilder &RecipeBuilder,
ElementCount MinVF);
+
+ /// Returns true when Factor A is more profitable than Factor B.
+ bool isMoreProfitable(const VectorizationFactor &A,
----------------
rengolin wrote:
I'd have guessed this is part of the cost model, not the planner.
https://github.com/llvm/llvm-project/pull/67647
More information about the llvm-commits
mailing list