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 6b819b9 commit d197787Copy full SHA for d197787
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
@@ -4350,6 +4350,9 @@ void LoopVectorizationPlanner::emitInvalidCostRemarks(
4350
SmallVector<RecipeVFPair> InvalidCosts;
4351
for (const auto &Plan : VPlans) {
4352
for (ElementCount VF : Plan->vectorFactors()) {
4353
+ // The VPlan-based cost model is designed for computing vector cost.
4354
+ // Quering VPlan-based cost model with scarlar VF will cause some error
4355
+ // because we expect the VF is vector for most of the widen recipes.
4356
if (VF.isScalar())
4357
continue;
4358
0 commit comments