[Mlir-commits] [mlir] [mlir][affine] Use iter argument replace init when delete loop in the coalesceLoops function (PR #169514)

Jakub Kuderski llvmlistbot at llvm.org
Sun Nov 30 06:48:19 PST 2025


================
@@ -1711,6 +1711,11 @@ LogicalResult mlir::affine::coalesceLoops(MutableArrayRef<AffineForOp> loops) {
   outermost.getBody()->getOperations().splice(
       Block::iterator(secondOutermostLoop.getOperation()),
       innermost.getBody()->getOperations());
+  for (auto [iter, init] : llvm::zip(secondOutermostLoop.getRegionIterArgs(),
----------------
kuhar wrote:

zip_equals?

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


More information about the Mlir-commits mailing list