diff options
author | Lei Zhang <antiagainst@google.com> | 2022-09-20 17:31:16 -0400 |
---|---|---|
committer | Lei Zhang <antiagainst@google.com> | 2022-09-20 17:31:22 -0400 |
commit | c325e978b529e7e899a31cd2693fbc1a676afcf0 (patch) | |
tree | b8226573178891f23629b63032969bf7b7c77156 /clang/lib/Serialization/ModuleManager.cpp | |
parent | f5253058144aca1e9fcacdca53accdc975e804cf (diff) | |
download | llvm-c325e978b529e7e899a31cd2693fbc1a676afcf0.zip llvm-c325e978b529e7e899a31cd2693fbc1a676afcf0.tar.gz llvm-c325e978b529e7e899a31cd2693fbc1a676afcf0.tar.bz2 |
[mlir][linalg] Swap tensor.extract_slice(linalg.fill)
This commit adds a pattern to swap
```
tensor.extract_slice(linalg.fill(%cst, %init))
```
into
```
linalg.fill(%cst, tensor.extract_slice(%init))
```
when the linalg.fill op have no other users.
This helps to reduce the fill footprint.
Reviewed By: mravishankar
Differential Revision: https://reviews.llvm.org/D134102
Diffstat (limited to 'clang/lib/Serialization/ModuleManager.cpp')
0 files changed, 0 insertions, 0 deletions