[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:34 PDT 2026
================
@@ -288,16 +290,14 @@ collectGroupedReplicateMemOps(
return Groups;
}
-/// Return true if we do not know how to (mechanically) hoist or sink \p R out
-/// of a loop region.
+/// Return true if we do not know how to (mechanically) hoist or sink a
+/// non-memory recipe \p R out of a loop region.
----------------
eas wrote:
```suggestion
/// Return true if we do not know how to (mechanically) hoist or sink a
/// \p R out of a loop region. This return false for memory recipes, use the
/// other overload if you need more precise analysis.
```
would be clearer, IMO. Up to you though.
https://github.com/llvm/llvm-project/pull/179506
More information about the llvm-commits
mailing list