diff options
author | Andrzej WarzyĆski <andrzej.warzynski@arm.com> | 2023-12-05 08:35:58 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-05 08:35:58 +0000 |
commit | 2eb9e33cc57d5acc2232d468a99f0e35c8f583dc (patch) | |
tree | d0d3f040e246ba0c22c79d16ca43b2bb521d2123 /llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp | |
parent | e8dbe945f39f2249fe24e0d62ec8ac998e853c2b (diff) | |
download | llvm-2eb9e33cc57d5acc2232d468a99f0e35c8f583dc.zip llvm-2eb9e33cc57d5acc2232d468a99f0e35c8f583dc.tar.gz llvm-2eb9e33cc57d5acc2232d468a99f0e35c8f583dc.tar.bz2 |
[mlir][Vector] Update patterns for flattening vector.xfer Ops (2/N) (#73523)
Updates patterns for flattening `vector.transfer_read` by relaxing the
requirement that the "collapsed" indices are all zero. This enables
collapsing cases like this one:
```mlir
%2 = vector.transfer_read %arg4[%c0, %arg0, %arg1, %c0] ... :
memref<1x43x4x6xi32>, vector<1x2x6xi32>
```
Previously only the following case would be consider for collapsing
(all indices are 0):
```mlir
%2 = vector.transfer_read %arg4[%c0, %c0, %c0, %c0] ... :
memref<1x43x4x6xi32>, vector<1x2x6xi32>
```
Also adds some new comments and renames the `firstContiguousInnerDim`
parameter as `firstDimToCollapse` (the latter better matches the actual
meaning).
Similar updates for `vector.transfer_write` will be implemented in a
follow-up patch.
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp')
0 files changed, 0 insertions, 0 deletions