Skip to content

Commit a16b6ff

Browse files
javedabsar1joaosaffran
authored andcommitted
[nfc][mlir][linalg] Make example easier to read. (llvm#127213)
1 parent c6e8f5e commit a16b6ff

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)