[llvm] [LV][VPlan] Add initial support for CSA vectorization (PR #106560)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 14 07:55:41 PDT 2024


================
@@ -231,6 +231,53 @@ class VPLane {
   }
 };
 
+class VPInstruction;
+class VPCSAHeaderPHIRecipe;
+class VPCSADataUpdateRecipe;
+class VPCSAExtractScalarRecipe;
+
+/// VPCSAState holds information required to vectorize a conditional scalar
+/// assignment.
+class VPCSAState {
+  VPValue *VPInitScalar = nullptr;
----------------
fhahn wrote:

Would be  good to avoid holding references to VPValues/Recipes, as they may be removed/replaced, in case the state here gets stale.

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


More information about the llvm-commits mailing list