[llvm] [VPlan] Extend licm to sink replicate stores (PR #191026)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 4 11:59:44 PDT 2026


================
@@ -2557,14 +2564,29 @@ static void licm(VPlan &Plan) {
 #ifndef NDEBUG
   VPDominatorTree VPDT(Plan);
 #endif
+  auto StoreGroups =
+      collectGroupedReplicateMemOps<Instruction::Store>(Plan, PSE, L);
+  VPTypeAnalysis TypeInfo(Plan);
+
----------------
fhahn wrote:

Do we need to collect the groups up-front? The main thing we need is `cannotHoistOrSinkRecipe` I think, can we use it without `collectGroupedReplicateMemOps`?

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


More information about the llvm-commits mailing list