[llvm] [LV] Prevent query the computeCost() when VF=1 in emitInvalidCostRemarks(). (PR #117288)
David Sherwood via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 20 01:58:00 PST 2024
================
@@ -4499,6 +4499,12 @@ void LoopVectorizationPlanner::emitInvalidCostRemarks(
SmallVector<RecipeVFPair> InvalidCosts;
for (const auto &Plan : VPlans) {
for (ElementCount VF : Plan->vectorFactors()) {
+ // The VPlan-based cost model is designed for computing vector cost.
+ // Quering VPlan-based cost model with scarlar VF will cause some error
----------------
david-arm wrote:
nit: `// Querying VPlan-based cost model with a scalar VF will cause some errors`
https://github.com/llvm/llvm-project/pull/117288
More information about the llvm-commits
mailing list