[PATCH] D133625: [mlir][MemRef] Simplify extract_strided_metadata(expand_shape)

Quentin Colombet via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 15 10:30:55 PDT 2022


qcolombet updated this revision to Diff 460450.
qcolombet added a comment.

- Rework the code to make it more approachable:
  - Compute all the static sizes and strides, first
  - Adjust the strides impacted by the dynamic size, second

Next: Will look into the `buildExpansionFactors` idea.
I wanted to share this version since it was what was driving our offline conversation with Nicolas.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D133625

Files:
  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: D133625.460450.patch
Type: text/x-patch
Size: 20044 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220915/4893894d/attachment.bin>


More information about the llvm-commits mailing list