[llvm] [LV][EVL] Introduce MergeUntilPivot VPInstruction to enable out-loop reduction in EVL vectorization. (PR #101641)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 3 10:32:45 PDT 2024


================
@@ -1481,7 +1486,8 @@ bool VPlanTransforms::tryAddExplicitVectorLength(VPlan &Plan) {
   NextEVLIV->insertBefore(CanonicalIVIncrement);
   EVLPhi->addOperand(NextEVLIV);
 
-  transformRecipestoEVLRecipes(Plan, *VPEVL);
+  LLVMContext &Ctx = CanonicalIVPHI->getScalarType()->getContext();
+  transformRecipestoEVLRecipes(Plan, *VPEVL, Ctx);
----------------
fhahn wrote:

sink retrieving `Ctx` to `transformRecipestoEVLRecipes`?

https://github.com/llvm/llvm-project/pull/101641


More information about the llvm-commits mailing list