File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
llvm/lib/Transforms/Vectorize Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1494,15 +1494,15 @@ bool VPlanTransforms::tryAddExplicitVectorLength(VPlan &Plan) {
1494
1494
}
1495
1495
1496
1496
if (NewRecipe) {
1497
- unsigned NumDefVal = NewRecipe->getNumDefinedValues ();
1497
+ [[maybe_unused]] unsigned NumDefVal = NewRecipe->getNumDefinedValues ();
1498
1498
assert (NumDefVal == CurRecipe->getNumDefinedValues () &&
1499
1499
" New recipe must define the same number of values as the "
1500
1500
" original." );
1501
1501
assert (
1502
1502
NumDefVal <= 1 &&
1503
1503
" Only supports recipes with a single definition or without users." );
1504
1504
NewRecipe->insertBefore (CurRecipe);
1505
- if (NumDefVal > 0 ) {
1505
+ if (isa<VPSingleDefRecipe, VPWidenLoadEVLRecipe>(NewRecipe) ) {
1506
1506
VPValue *CurVPV = CurRecipe->getVPSingleValue ();
1507
1507
CurVPV->replaceAllUsesWith (NewRecipe->getVPSingleValue ());
1508
1508
}
You can’t perform that action at this time.
0 commit comments