[Mlir-commits] [mlir] [mlir][mesh] Add endomorphism simplification for all-reduce (PR #73150)

Boian Petkantchin llvmlistbot at llvm.org
Wed Dec 6 10:12:47 PST 2023


================
@@ -0,0 +1,131 @@
+// RUN: mlir-opt -test-mesh-simplifications %s | FileCheck %s
----------------
sogartar wrote:

Do you mean not to do the simplification in that case since there may not be a performance benefit?
A more complete approach would be if we somehow we knew if the other use will be also removed.
Maybe we can have another rewrite pattern that reverses the endomorphism simplification if the other use is still alive. Then we apply it in another pass to avoid infinite loop of rewrites.

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


More information about the Mlir-commits mailing list