Files
clang-p2996/mlir/lib/Dialect/MemRef/Transforms/RuntimeOpVerification.cpp
Matthias Springer fd161cf56f [mlir][memref] Remove runtime verification for memref.reinterpret_cast (#132547)
The runtime verification code used to verify that the result of a
`memref.reinterpret_cast` is in-bounds with respect to the source
memref. This is incorrect: `memref.reinterpret_cast` allows users to
construct almost arbitrary memref descriptors and there is no
correctness expectation.

This op is supposed to be used when the user "knows what they are
doing." Similarly, the static verifier of `memref.reinterpret_cast` does
not verify in-bounds semantics either.
2025-05-06 09:40:28 +02:00

16 KiB