[Mlir-commits] [mlir] [mlir][linalg][elementwise] Fold broadcast into new elementwise (PR #167626)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Sun Dec 21 18:15:16 PST 2025


================
@@ -167,12 +167,12 @@ def LinalgInlineScalarOperandsPass : Pass<"linalg-inline-scalar-operands"> {
 }
 
 def LinalgFoldIntoElementwisePass : Pass<"linalg-fold-into-elementwise"> {
-  let summary = "Fold transpose ops into elementwise";
+  let summary = "Fold transpose and broadcast ops into elementwise";
   let dependentDialects = ["linalg::LinalgDialect"];
 
   let description = [{
-    Fold transpose ops that feed `linalg.elementwise` into the elementwise op
-    by updating its indexing maps. `linalg.transpose` producers whose consumer
+    Fold transpose and broadcast ops that feed `linalg.elementwise` into the elementwise op
+    by updating its indexing maps. `linalg.transpose` and `linalg.broadcast` producers whose consumer
----------------
someoneinjd wrote:

Fixed.

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


More information about the Mlir-commits mailing list