diff options
author | Christopher Bate <cbate@nvidia.com> | 2023-08-23 10:34:25 -0600 |
---|---|---|
committer | Christopher Bate <cbate@nvidia.com> | 2023-08-28 11:17:11 -0600 |
commit | 9bd19bb703a437dfdac51823f26e25e0537d8c48 (patch) | |
tree | 9dc046793fc69bd74a917afc1b9a6f5a59570c29 /clang/unittests/Interpreter/CodeCompletionTest.cpp | |
parent | ba77c160aada87af42d2ec41b0d1ab0ae242cb80 (diff) | |
download | llvm-9bd19bb703a437dfdac51823f26e25e0537d8c48.zip llvm-9bd19bb703a437dfdac51823f26e25e0537d8c48.tar.gz llvm-9bd19bb703a437dfdac51823f26e25e0537d8c48.tar.bz2 |
[mlir][tensor] Fix bug in utility `tensor::isCastLikeExtractSliceOp`
Fixes an issue where `isCastLikeExtractSliceOp` did not account for the fact
that `tensor.extract_slice` may drop non-unit dimensions. This change makes the
utility function behave inline with its name/description. The only user of this
function is in the `FindPayloadReplacementOpInterface` for the
`tensor::ExtractSliceOp`. This can potentially cause downstream projects to have
more "listener could not find replacement op" errors when interpreting Transform
IR, but the behavior is inline with the documented conservative behavior of the
Transform dialect's TrackingListener.
Reviewed By: springerm
Differential Revision: https://reviews.llvm.org/D158635
Diffstat (limited to 'clang/unittests/Interpreter/CodeCompletionTest.cpp')
0 files changed, 0 insertions, 0 deletions