[Mlir-commits] [mlir] [mlir][linalg] Improve getPreservedProducerResults estimation in ElementwiseOpFusion (PR #104409)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Mon Aug 19 00:33:32 PDT 2024


================
@@ -498,7 +498,8 @@ struct ElementwiseOpFusionResult {
   Operation *fusedOp;
   llvm::DenseMap<Value, Value> replacements;
   static llvm::SmallDenseSet<int>
-  getPreservedProducerResults(GenericOp producer, GenericOp consumer);
+  getPreservedProducerResults(GenericOp producer, GenericOp consumer,
----------------
DanielLevi6 wrote:

Fixed
A comment was added in order to note that there is a chance of disagreement between the implementation of the transformation and the result of the method. And I moved that method outside of the struct.

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


More information about the Mlir-commits mailing list