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