[llvm] [LV][VPlan] Introduce VPIntermediateStore recipe to handle scalar stores in exit block. (PR #93148)

Kolya Panchenko via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 13 16:50:01 PDT 2024


================
@@ -2821,6 +2823,55 @@ class VPScalarIVStepsRecipe : public VPRecipeWithIRFlags {
   }
 };
 
+/// A recipe to represent scalar stores that sink outside the vector loop.
+class VPIntermediateStoreRecipe : public VPRecipeBase {
----------------
nikolaypanchenko wrote:

I believe the way Mel implemented it is similar to how `VPWidenStore` is done, with the difference that it's scalar store. Maybe proper name would be `VPScalarStore` though, like `VPScalarCast`

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


More information about the llvm-commits mailing list