[llvm] [VPlan] Introduce recipes for VP loads and stores. (PR #87816)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 19 01:03:19 PDT 2024


================
@@ -1271,7 +1280,10 @@ void VPlanTransforms::addActiveLaneMask(
   // Walk users of WideCanonicalIV and replace all compares of the form
   // (ICMP_ULE, WideCanonicalIV, backedge-taken-count) with an
   // active-lane-mask.
-  replaceHeaderPredicateWith(Plan, *LaneMask);
+  for (VPValue *HeaderMask : collectAllHeaderMasks(Plan)) {
+    HeaderMask->replaceAllUsesWith(LaneMask);
+    recursivelyDeleteDeadRecipes(HeaderMask);
----------------
fhahn wrote:

Ah yes, removed  thanks(originally thought this comment was for the addExplicitVectorlength, where it wouldn't apply)

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


More information about the llvm-commits mailing list