[Mlir-commits] [mlir] 035bc52 - [nfc][mlir][linalg] Make example easier to read. (#127213)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Fri Feb 14 07:54:28 PST 2025


Author: Javed Absar
Date: 2025-02-14T15:54:25Z
New Revision: 035bc529f7de71aac6161f8074725acdb5a11254

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

LOG: [nfc][mlir][linalg] Make example easier to read. (#127213)

Added: 
    

Modified: 
    mlir/lib/Dialect/Linalg/Transforms/SwapExtractSliceWithFillPatterns.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Dialect/Linalg/Transforms/SwapExtractSliceWithFillPatterns.cpp b/mlir/lib/Dialect/Linalg/Transforms/SwapExtractSliceWithFillPatterns.cpp
index 425ef2f3068b2..d35aad514e884 100644
--- a/mlir/lib/Dialect/Linalg/Transforms/SwapExtractSliceWithFillPatterns.cpp
+++ b/mlir/lib/Dialect/Linalg/Transforms/SwapExtractSliceWithFillPatterns.cpp
@@ -12,8 +12,12 @@
 using namespace mlir;
 using namespace mlir::linalg;
 
-/// Swaps tensor.extract_slice(linalg.fill(%cst, %init)) into linalg.fill(%cst,
-/// tensor.extract_slice(%init)) when the linalg.fill op have no other users.
+/// swaps:
+///      `tensor.extract_slice(linalg.fill(%cst, %init))`
+/// with:
+///      `linalg.fill(%cst, tensor.extract_slice(%init))`
+///
+/// when the linalg.fill op have no other users.
 /// This helps to reduce the fill footprint.
 struct SwapExtractSliceOfFill final
     : public OpRewritePattern<tensor::ExtractSliceOp> {


        


More information about the Mlir-commits mailing list