[Mlir-commits] [mlir] [SCF][Transform] Add support for scf.for in LoopFuseSibling op (PR #81495)

Oleksandr Alex Zinenko llvmlistbot at llvm.org
Tue Feb 13 03:56:53 PST 2024


================
@@ -970,3 +970,69 @@ scf::ForallOp mlir::fuseIndependentSiblingForallLoops(scf::ForallOp target,
 
   return fusedLoop;
 }
+
+scf::ForOp mlir::fuseIndependentSiblingForLoops(scf::ForOp target,
+                                                scf::ForOp source,
+                                                RewriterBase &rewriter) {
+  // Create fused init_args.
+  auto targetInitArgs = target.getInitArgs();
----------------
ftynse wrote:

Nit: please expand `auto` unless the type is obvious from RHS, e.g., there is a cast.

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


More information about the Mlir-commits mailing list