Skip to content

Commit 035bc52

Browse files
authored
[nfc][mlir][linalg] Make example easier to read. (llvm#127213)
1 parent d595d5a commit 035bc52

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,12 @@
1212
using namespace mlir;
1313
using namespace mlir::linalg;
1414

15-
/// Swaps tensor.extract_slice(linalg.fill(%cst, %init)) into linalg.fill(%cst,
16-
/// tensor.extract_slice(%init)) when the linalg.fill op have no other users.
15+
/// swaps:
16+
/// `tensor.extract_slice(linalg.fill(%cst, %init))`
17+
/// with:
18+
/// `linalg.fill(%cst, tensor.extract_slice(%init))`
19+
///
20+
/// when the linalg.fill op have no other users.
1721
/// This helps to reduce the fill footprint.
1822
struct SwapExtractSliceOfFill final
1923
: public OpRewritePattern<tensor::ExtractSliceOp> {

0 commit comments

Comments
 (0)