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 44b24f4 commit 707afabCopy full SHA for 707afab
llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
@@ -1412,8 +1412,9 @@ static void narrowToSingleScalarRecipes(VPlan &Plan) {
1412
// broadcasts.
1413
if (!vputils::isSingleScalar(RepOrWidenR) ||
1414
!all_of(RepOrWidenR->users(), [RepOrWidenR](const VPUser *U) {
1415
- if (isa<VPWidenStoreRecipe>(U))
1416
- return true;
+ if (auto *Store = dyn_cast<VPWidenStoreRecipe>(U))
+ if (vputils::isSingleScalar(Store->getStoredValue()))
1417
+ return true;
1418
1419
if (auto *VPI = dyn_cast<VPInstruction>(U))
1420
if (VPI->isSingleScalar() ||
0 commit comments