diff options
author | Matthias Springer <me@m-sp.org> | 2023-10-27 17:39:55 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-27 17:39:55 +0900 |
commit | e6e55e620bb6adba50c15ff52e177b5c68e38d61 (patch) | |
tree | 2090ba682cdae2f0739e03e2d6b77362d456fb1a /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 5270df3d177ae8849e5f1a2cec28b193ab209ef2 (diff) | |
download | llvm-e6e55e620bb6adba50c15ff52e177b5c68e38d61.zip llvm-e6e55e620bb6adba50c15ff52e177b5c68e38d61.tar.gz llvm-e6e55e620bb6adba50c15ff52e177b5c68e38d61.tar.bz2 |
[mlir][vector] Fix off-by-one error in `getTransferChunkAccessed` (#70292)
If a dimension does not appear in the permutation map of a vector
transfer op, the size of the accessed slice in that dimension is `1`.
Before this fix, `getTransferChunkAccessed` used to return `0` for such
dimensions, which would means that `0` elements in the underlying
tensor/memref are accessed.
Note: There is no test case that fails due to this bug and because this
interface method is currently only used in one place, it is hard to
write a regression test. This fix is in preparation of subset hoisting
functionality that will be added in subsequent commits.
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions