[mlir][bufferization] Simplify helper `potentiallyAliasesMemref` (#78690)
commitb4f24be7ef9bb08f6c3d6e96c998a942d95e0038
authorMatthias Springer <me@m-sp.org>
Fri, 19 Jan 2024 12:22:02 +0000 (19 13:22 +0100)
committerGitHub <noreply@github.com>
Fri, 19 Jan 2024 12:22:02 +0000 (19 13:22 +0100)
treebf3656eddd417e61d204ce5eba647845202ab7e1
parent80ccc72ec729623f6898d50f75447c3057557a8f
[mlir][bufferization] Simplify helper `potentiallyAliasesMemref` (#78690)

This commit simplifies a helper function in the ownership-based buffer
deallocation pass. Fixes a potential double-free (depending on the
scheduling of patterns).
mlir/lib/Dialect/Bufferization/Transforms/BufferDeallocationSimplification.cpp
mlir/test/Dialect/Bufferization/Transforms/buffer-deallocation-simplification.mlir