[all-commits] [llvm/llvm-project] 6c85a4: [mlir][memref] Use current source type in getCanon...
Tobias Gysi via All-commits
all-commits at lists.llvm.org
Mon Dec 13 06:51:04 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 6c85a49e22021a8709d3d4f2a976b299c7cbcaa6
https://github.com/llvm/llvm-project/commit/6c85a49e22021a8709d3d4f2a976b299c7cbcaa6
Author: gysit <gysit at google.com>
Date: 2021-12-13 (Mon, 13 Dec 2021)
Changed paths:
M mlir/lib/Dialect/MemRef/IR/MemRefOps.cpp
M mlir/test/Dialect/MemRef/canonicalize.mlir
Log Message:
-----------
[mlir][memref] Use current source type in getCanonicalSubViewResultType.
Use the current instead of the new source type to compute the rank-reduction map in getCanonicalSubViewResultType. Otherwise, the computation of the rank-reduction map fails when folding a cast into a subview since the strides of the new source type cannot be related to the strides of the current result type.
Depends On D115428
Reviewed By: nicolasvasilache
Differential Revision: https://reviews.llvm.org/D115446
More information about the All-commits
mailing list