[Mlir-commits] [mlir] Refactor LoopFuseSiblingOp and support parallel fusion (PR #94391)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Tue Jun 4 13:57:37 PDT 2024
================
@@ -1171,3 +1372,10 @@ scf::ForOp mlir::fuseIndependentSiblingForLoops(scf::ForOp target,
return fusedLoop;
}
+
+scf::ParallelOp mlir::fuseIndependentSiblingParallelLoops(
+ scf::ParallelOp target, scf::ParallelOp source, RewriterBase &rewriter) {
+ auto mayAlias = [&](Value val1, Value val2) -> bool { return false; };
----------------
srcarroll wrote:
not exactly sure what to do with this, but i figured if this was intended to be some "naive" with no checks that we can relax any aliasing conditions. feedback on this much appreciated
https://github.com/llvm/llvm-project/pull/94391
More information about the Mlir-commits
mailing list