[all-commits] [llvm/llvm-project] 244af2: [mlir][MemRef] Simplify extract_strided_metadata(r...
qcolombet via All-commits
all-commits at lists.llvm.org
Mon Nov 14 10:42:15 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 244af24faf3a2a674f38de7b085482e9f49d76fc
https://github.com/llvm/llvm-project/commit/244af24faf3a2a674f38de7b085482e9f49d76fc
Author: Quentin Colombet <quentin.colombet at gmail.com>
Date: 2022-11-14 (Mon, 14 Nov 2022)
Changed paths:
M mlir/lib/Dialect/MemRef/Transforms/SimplifyExtractStridedMetadata.cpp
M mlir/test/Dialect/MemRef/simplify-extract-strided-metadata.mlir
Log Message:
-----------
[mlir][MemRef] Simplify extract_strided_metadata(reinterpret_cast)
This patch adds a pattern to simplify
```
base, offset, sizes, strides =
extract_strided_metadata(
reinterpret_cast(src, srcOffset, srcSizes, srcStrides))
```
Into
```
base, baseOffset, ... = extract_strided_metadata(src)
offset = srcOffset
sizes = srcSizes
strides = srcStrides
```
Note: Reinterpret_cast with unranked sources are not simplified since
they cannot feed extract_strided_metadata operations.
Differential Revision: https://reviews.llvm.org/D135837
More information about the All-commits
mailing list