[Mlir-commits] [mlir] [mlir] Fix consumer fusion for producer with multiple results (PR #125915)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Sat Feb 15 14:48:47 PST 2025


================
@@ -1979,6 +2033,26 @@ mlir::scf::tileAndFuseConsumerOfSlice(RewriterBase &rewriter,
         consumerOp, "consumer op's operand doesn't seem to be an OpResult");
   }
 
+  SmallVector<OpOperand *> potentialOperands = {*maybeConsumerOpOperand};
----------------
MaheshRavishankar wrote:

The comment below actually is fine. Move that up above these.
Also instead of a `SmallVector<OpOperand *>` and a `SmallVector<Operation *>` for the slices, just make a `SmallVector<std::tuple<OpOperand *, Operation *>>`

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


More information about the Mlir-commits mailing list