Skip to content

Commit 7998e20

Browse files
committed
[VPlan] NFC improvement
1 parent 9af51a2 commit 7998e20

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)