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 ac735e7 commit 0991c13Copy full SHA for 0991c13
llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
@@ -1420,8 +1420,9 @@ static void narrowToSingleScalarRecipes(VPlan &Plan) {
1420
// broadcasts.
1421
if (!vputils::isSingleScalar(RepOrWidenR) ||
1422
!all_of(RepOrWidenR->users(), [RepOrWidenR](const VPUser *U) {
1423
- if (isa<VPWidenStoreRecipe>(U))
1424
- return true;
+ if (auto *Store = dyn_cast<VPWidenStoreRecipe>(U))
+ if (vputils::isSingleScalar(Store->getStoredValue()))
1425
+ return true;
1426
1427
if (auto *VPI = dyn_cast<VPInstruction>(U))
1428
if (VPI->isSingleScalar() ||
0 commit comments