[PATCH] D133625: [mlir][MemRef] Simplify extract_strided_metadata(expand_shape)
Nicolas Vasilache via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 14 01:45:00 PDT 2022
nicolasvasilache added inline comments.
================
Comment at: mlir/lib/Dialect/MemRef/Transforms/SimplifyExtractStridedMetadata.cpp:194
+/// In other words, get rid of the expand_shape in that expression and
+/// materialize its effects on the sizes and the strides using affine apply.
+struct ExtractStridedMetadataOpExpandShapeFolder
----------------
nit: `affine.apply`
================
Comment at: mlir/lib/Dialect/MemRef/Transforms/SimplifyExtractStridedMetadata.cpp:268
+
+ // Calculate product(expandShapeSize#j, for j in
+ // reassIdx+1..reassIdx+group.size-1) for each dimension of that group.
----------------
Can anything be refactored and reused from `MemRefOps.cpp::namespace saturated_arith {` ?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D133625/new/
https://reviews.llvm.org/D133625
More information about the llvm-commits
mailing list