diff options
author | Lei Zhang <antiagainst@google.com> | 2022-10-08 00:43:27 +0000 |
---|---|---|
committer | Lei Zhang <antiagainst@google.com> | 2022-10-08 00:43:45 +0000 |
commit | f0c93fd4cac76d9ae1b2ff99c40c08abeb940f21 (patch) | |
tree | 35ce1ea7c660957dfd9d72ad16900de0689e18c9 /clang/lib/Sema/SemaModule.cpp | |
parent | f749b2d9a58b031271ec92afbef726112b34705a (diff) | |
download | llvm-f0c93fd4cac76d9ae1b2ff99c40c08abeb940f21.zip llvm-f0c93fd4cac76d9ae1b2ff99c40c08abeb940f21.tar.gz llvm-f0c93fd4cac76d9ae1b2ff99c40c08abeb940f21.tar.bz2 |
[mlir][vector] Merge accumulator/result transpose into contract
This commit adds a pattern to merge accumulator and result
`vector.transpose` ops into `vector.contract`. This kind of
pattern can be generated for NCHW convolution vectorization,
where we use transposes to convert the 1-D NCW convolution
into NWC during vectorization. Merging the transpose would
mean we can avoid materialize vector extract/insert for
transposes and it makes further vector level transformations
easier.
Reviewed By: ThomasRaoux
Differential Revision: https://reviews.llvm.org/D135496
Diffstat (limited to 'clang/lib/Sema/SemaModule.cpp')
0 files changed, 0 insertions, 0 deletions