[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
Loading
Please sign in to comment