diff options
| author | Lei Zhang <antiagainst@google.com> | 2021-03-24 17:49:58 -0400 |
|---|---|---|
| committer | Lei Zhang <antiagainst@google.com> | 2021-03-24 18:17:57 -0400 |
| commit | e58597ee1c7dfe4fd2fdf6f5f0230f22b849c9be (patch) | |
| tree | 03ee1b3e584281b162034e2aa2233b01031c9703 /clang/lib/Frontend/CompilerInvocation.cpp | |
| parent | ddf93abf49f7b753e8554fa47a4aaf811f40210a (diff) | |
| download | llvm-e58597ee1c7dfe4fd2fdf6f5f0230f22b849c9be.zip llvm-e58597ee1c7dfe4fd2fdf6f5f0230f22b849c9be.tar.gz llvm-e58597ee1c7dfe4fd2fdf6f5f0230f22b849c9be.tar.bz2 | |
[mlir][linalg] Fuse producers with non-permutation indexing maps
Until now Linalg fusion only allow fusing producers whose operands
are all permutation indexing maps. It's easier to deduce the
subtensor/subview but it is an unnecessary constraint, as in tiling
we have more advanced logic to deduce the subranges even when the
operand is not of permutation indexing maps, e.g., the input operand
for convolution ops.
This patch uses the logic on tiling side to deduce subranges for
fusion. This enables fusing convolution with its consumer ops
when possible.
Along the way, we are now generating proper affine.min ops to guard
against size boundaries, if we cannot be certain they won't be
out of bounds.
Differential Revision: https://reviews.llvm.org/D99014
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions
