[mlir] Fix comma+typo in MLIR toy tutorial chapter 3.

Differential Revision: https://reviews.llvm.org/D75258
This commit is contained in:
Matthias Kramm 2020-02-27 17:50:41 -08:00 committed by River Riddle
parent 9f6617dcd9
commit 79c17330d3
1 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@ use of DRR requires that the operations be defined using ODS, as described in
## Optimize Transpose using C++ style pattern-match and rewrite
Let's start with a simple pattern and try to eliminate a sequence of two
transpose that cancel out: `transpose(transpose(X)) -> X`. Here is the
transposes that cancel out: `transpose(transpose(X)) -> X`. Here is the
corresponding Toy example:
```toy
@ -70,7 +70,7 @@ void double_transpose(int A[N][M]) {
}
```
For a simple C++ approach to rewrite involving matching a tree-like pattern in
For a simple C++ approach to rewrite, involving matching a tree-like pattern in
the IR and replacing it with a different set of operations, we can plug into the
MLIR `Canonicalizer` pass by implementing a `RewritePattern`: