File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
llvm/lib/Transforms/Vectorize Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -1432,12 +1432,11 @@ static void narrowToSingleScalarRecipes(VPlan &Plan) {
14321432 !all_of (RepOrWidenR->users (), [RepOrWidenR](const VPUser *U) {
14331433 if (auto *Store = dyn_cast<VPWidenStoreRecipe>(U)) {
14341434 // VPWidenStore doesn't have users, and stores are always
1435- // profitable to widen: hence, permitting single-scalar stored
1436- // values and mask operands is an important leaf condition. The
1437- // assert must hold as we checked the RepOrWidenR operand against
1438- // vputils::isSingleScalar.
1439- assert (RepOrWidenR == Store->getAddr () ||
1440- RepOrWidenR == Store->getMask () ||
1435+ // profitable to widen: hence, permitting address and mask
1436+ // operands, and single-scalar stored values is an important leaf
1437+ // condition. The assert must hold as we checked the RepOrWidenR
1438+ // operand against vputils::isSingleScalar.
1439+ assert (RepOrWidenR != Store->getStoredValue () ||
14411440 vputils::isSingleScalar (Store->getStoredValue ()));
14421441 return true ;
14431442 }
You can’t perform that action at this time.
0 commit comments