[clang] [llvm] [LV] Mask off possibly aliasing vector lanes (PR #100579)

Florian Hahn via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 5 06:03:44 PDT 2024


================
@@ -8520,7 +8561,29 @@ LoopVectorizationPlanner::tryToBuildVPlanWithVPRecipes(VFRange &Range) {
   // When not folding the tail, we know that the induction increment will not
   // overflow.
   bool HasNUW = Style == TailFoldingStyle::None;
-  addCanonicalIVRecipes(*Plan, Legal->getWidestInductionType(), HasNUW, DL);
+
+  VPValue *AliasMask = nullptr;
----------------
fhahn wrote:


Does this need to be done at initial construction? IIUC this could be framed as optimization of the original VPlan, done as a separate VPlan-to-VPlan transform?

At the moment this requires threading a bunch of information to a lot of places, would
Be good limit to a single dedicated transform

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


More information about the cfe-commits mailing list