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 @@ -1351,9 +1351,9 @@ void VPlanTransforms::addActiveLaneMask(
13511351}
13521352
13531353// / Replace recipes with their EVL variants.
1354- static void transformRecipestoEVLRecipes (VPlan &Plan, VPValue &EVL,
1355- LLVMContext &Ctx) {
1354+ static void transformRecipestoEVLRecipes (VPlan &Plan, VPValue &EVL) {
13561355 using namespace llvm ::VPlanPatternMatch;
1356+ LLVMContext &Ctx = Plan.getCanonicalIV ()->getScalarType ()->getContext ();
13571357 SmallVector<VPValue *> HeaderMasks = collectAllHeaderMasks (Plan);
13581358 for (VPValue *HeaderMask : collectAllHeaderMasks (Plan)) {
13591359 for (VPUser *U : collectUsersRecursively (HeaderMask)) {
@@ -1487,8 +1487,7 @@ bool VPlanTransforms::tryAddExplicitVectorLength(VPlan &Plan) {
14871487 NextEVLIV->insertBefore (CanonicalIVIncrement);
14881488 EVLPhi->addOperand (NextEVLIV);
14891489
1490- LLVMContext &Ctx = CanonicalIVPHI->getScalarType ()->getContext ();
1491- transformRecipestoEVLRecipes (Plan, *VPEVL, Ctx);
1490+ transformRecipestoEVLRecipes (Plan, *VPEVL);
14921491
14931492 // Replace all uses of VPCanonicalIVPHIRecipe by
14941493 // VPEVLBasedIVPHIRecipe except for the canonical IV increment.
You can’t perform that action at this time.
0 commit comments