We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c6f9b3e commit e1071a8Copy full SHA for e1071a8
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
@@ -4327,6 +4327,9 @@ void LoopVectorizationPlanner::emitInvalidCostRemarks(
4327
SmallVector<RecipeVFPair> InvalidCosts;
4328
for (const auto &Plan : VPlans) {
4329
for (ElementCount VF : Plan->vectorFactors()) {
4330
+ // The VPlan-based cost model is designed for computing vector cost.
4331
+ // Quering VPlan-based cost model with scarlar VF will cause some error
4332
+ // because we expect the VF is vector for most of the widen recipes.
4333
if (VF.isScalar())
4334
continue;
4335
0 commit comments