[llvm] [VPlan] Extend licm to hoist replicate loads (PR #179506)

Andrei Elovikov via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 17 09:59:32 PDT 2026


================
@@ -257,7 +257,9 @@ template <unsigned Opcode>
 static SmallVector<SmallVector<VPReplicateRecipe *, 4>>
 collectGroupedReplicateMemOps(
     VPlan &Plan, PredicatedScalarEvolution &PSE, const Loop *L,
-    function_ref<bool(VPReplicateRecipe *)> FilterFn) {
+    function_ref<bool(VPReplicateRecipe *)> FilterFn = [](VPReplicateRecipe *) {
+      return true;
+    }) {
----------------
eas wrote:

nit: I personally think that doesn't need any additional documentation, but others would probably disagree :)

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


More information about the llvm-commits mailing list