[Mlir-commits] [mlir] [MLIR][Linalg] Fix insert_slice fusion with rank reduction (PR #130961)
Andrzej WarzyĆski
llvmlistbot at llvm.org
Fri May 16 10:20:23 PDT 2025
================
@@ -271,12 +309,16 @@ mlir::linalg::fuseProducerOfTensor(OpBuilder &b, OpResult producerOpResult,
consumerOpOperand);
// Replace use.
+ Value def = fusedProducer->getResult(producerOpResult.getResultNumber());
+ Type consumerType = consumerOpOperand.get().getType();
+ // Rank-reduction occured as part of the extract_slice.
----------------
banach-space wrote:
> // Rank-reduction occured as part of the extract_slice.
* occured -> occurred
* shouldn't we verify that it's indeed coming from `tensor.extract_slice`?
https://github.com/llvm/llvm-project/pull/130961
More information about the Mlir-commits
mailing list