File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
llvm/lib/Transforms/Vectorize Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -1350,9 +1350,9 @@ void VPlanTransforms::addActiveLaneMask(
1350
1350
}
1351
1351
1352
1352
// / Replace recipes with their EVL variants.
1353
- static void transformRecipestoEVLRecipes (VPlan &Plan, VPValue &EVL,
1354
- LLVMContext &Ctx) {
1353
+ static void transformRecipestoEVLRecipes (VPlan &Plan, VPValue &EVL) {
1355
1354
using namespace llvm ::VPlanPatternMatch;
1355
+ LLVMContext &Ctx = Plan.getCanonicalIV ()->getScalarType ()->getContext ();
1356
1356
SmallVector<VPValue *> HeaderMasks = collectAllHeaderMasks (Plan);
1357
1357
for (VPValue *HeaderMask : collectAllHeaderMasks (Plan)) {
1358
1358
for (VPUser *U : collectUsersRecursively (HeaderMask)) {
@@ -1486,8 +1486,7 @@ bool VPlanTransforms::tryAddExplicitVectorLength(VPlan &Plan) {
1486
1486
NextEVLIV->insertBefore (CanonicalIVIncrement);
1487
1487
EVLPhi->addOperand (NextEVLIV);
1488
1488
1489
- LLVMContext &Ctx = CanonicalIVPHI->getScalarType ()->getContext ();
1490
- transformRecipestoEVLRecipes (Plan, *VPEVL, Ctx);
1489
+ transformRecipestoEVLRecipes (Plan, *VPEVL);
1491
1490
1492
1491
// Replace all uses of VPCanonicalIVPHIRecipe by
1493
1492
// VPEVLBasedIVPHIRecipe except for the canonical IV increment.
You can’t perform that action at this time.
0 commit comments