[Mlir-commits] [mlir] [MLIR][TilingInterface] Extend consumer fusion for multi-use of producer shared by terminator ops (PR #110105)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Mon Sep 30 02:15:22 PDT 2024
================
@@ -1488,8 +1488,6 @@ static FailureOr<OpOperand *> getConsumerFromUses(Value val,
Operation *consumerOp = opOperand.getOwner();
if (isa<scf::YieldOp, tensor::ParallelInsertSliceOp>(consumerOp))
continue;
- if (operand && *operand != opOperand)
- return failure();
// TODO: We have to init result of consumer before scf.for, use
----------------
Yun-Fly wrote:
Wait... We indeed need `if(operand) return failure()` here. Otherwise, the second one(if possible) will overwrite the first one.
https://github.com/llvm/llvm-project/pull/110105
More information about the Mlir-commits
mailing list