[Mlir-commits] [mlir] [mlir][linalg] Expose getPreservedProducerResults method from ElementwiseOpFusion file (PR #73850)
Amir Bishara
llvmlistbot at llvm.org
Thu Nov 30 02:11:53 PST 2023
================
@@ -493,6 +493,8 @@ LogicalResult dropUnitDims(RewriterBase &rewriter, GenericOp genericOp,
struct ElementwiseOpFusionResult {
Operation *fusedOp;
llvm::DenseMap<Value, Value> replacements;
+ static llvm::SmallDenseSet<int>
----------------
amirBish wrote:
This is the only place we're using this util for elementwiseFusion issue.
So, I thought of introducing it within the transform header.
we could introduce it in the `mlir/lib/Dialect/Linalg/Utils/Utils.cpp` but It feels not general enough as other utils.
https://github.com/llvm/llvm-project/pull/73850
More information about the Mlir-commits
mailing list