[PATCH] D133166: [mlir][MemRef] Canonicalize extract_strided_metadata(subview)

Quentin Colombet via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 6 18:43:52 PDT 2022


qcolombet updated this revision to Diff 458342.
qcolombet added a comment.
Herald added a subscriber: mgorny.

- Move the canonicalization in its how pass (and call it simplification!)
- Use `affine apply` to expand the offset and strides computations
- Add a test with everything being dynamic to demonstrate all the computations


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D133166/new/

https://reviews.llvm.org/D133166

Files:
  mlir/include/mlir/Dialect/MemRef/Transforms/Passes.h
  mlir/include/mlir/Dialect/MemRef/Transforms/Passes.td
  mlir/lib/Dialect/MemRef/Transforms/CMakeLists.txt
  mlir/lib/Dialect/MemRef/Transforms/SimplifyExtractStridedMetadata.cpp
  mlir/test/Dialect/MemRef/simplify-extract-strided-metadata.mlir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D133166.458342.patch
Type: text/x-patch
Size: 24417 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220907/e0ef29c0/attachment.bin>


More information about the llvm-commits mailing list