[Mlir-commits] [mlir] dfe84fb - [MLIR][NFC] Fix the pass description to describe what it actually does. (#172306)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Wed Dec 17 03:27:13 PST 2025


Author: Petr Kurapov
Date: 2025-12-17T12:27:08+01:00
New Revision: dfe84fbe9383f6003ca00c9c8e0081c00afbd456

URL: https://github.com/llvm/llvm-project/commit/dfe84fbe9383f6003ca00c9c8e0081c00afbd456
DIFF: https://github.com/llvm/llvm-project/commit/dfe84fbe9383f6003ca00c9c8e0081c00afbd456.diff

LOG: [MLIR][NFC] Fix the pass description to describe what it actually does. (#172306)

Added: 
    

Modified: 
    mlir/include/mlir/Dialect/Linalg/Passes.td

Removed: 
    


################################################################################
diff  --git a/mlir/include/mlir/Dialect/Linalg/Passes.td b/mlir/include/mlir/Dialect/Linalg/Passes.td
index 44da2965e6892..42d4d2083fc1c 100644
--- a/mlir/include/mlir/Dialect/Linalg/Passes.td
+++ b/mlir/include/mlir/Dialect/Linalg/Passes.td
@@ -167,8 +167,15 @@ def LinalgInlineScalarOperandsPass : Pass<"linalg-inline-scalar-operands"> {
 }
 
 def LinalgFoldIntoElementwisePass : Pass<"linalg-fold-into-elementwise"> {
-  let summary = "Fold transform, broadcast and other ops into elementwise";
+  let summary = "Fold transpose 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
+    indexing map is the identity are absorbed, turning the permutation into
+    the elementwise map itself. Other operands remain untouched.
+  }];
 }
 
 def LinalgDetensorizePass : InterfacePass<"linalg-detensorize", "FunctionOpInterface"> {


        


More information about the Mlir-commits mailing list