[llvm] [VPlan] Run narrowInterleaveGroups during general VPlan optimizations. (PR #149706)

via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 23 09:51:22 PDT 2025


================
@@ -4277,6 +4283,12 @@ class VPlan {
 
   void addVF(ElementCount VF) { VFs.insert(VF); }
 
+  /// Remove \p VF from the plan.
+  void removeVF(ElementCount VF) {
+    assert(hasVF(VF) && "tried to remove VF not present in plan");
+    VFs.remove(VF);
+  }
+
----------------
ayalz wrote:

Better place `removeVF()` after rather than between `addVF()` and `setVF()`?

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


More information about the llvm-commits mailing list