[Mlir-commits] [mlir] [mlir][linalg] Expose getPreservedProducerResults method from ElementwiseOpFusion file (PR #73850)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Wed Nov 29 15:13:10 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>
----------------
MaheshRavishankar wrote:
The `replacements` here is a map from original value to replacement value. You should be able to use that in the caller to get which results are preserved and which are not.
https://github.com/llvm/llvm-project/pull/73850
More information about the Mlir-commits
mailing list