[Mlir-commits] [mlir] [mlir][linalg] Expose getPreservedProducerResults method from ElementwiseOpFusion file (PR #73850)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Wed Nov 29 23:49:05 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:

What kind of decision are you trying to make... do you want the fused output to have the same number of results as the consumer? Then a simple check here would be to check producer has no other uses apart from in the consumer. Are you looking for something more complicated?

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


More information about the Mlir-commits mailing list