This is an archive of the discontinued LLVM Phabricator instance.

[mlir][bufferization] Do not canonicalize to_tensor(to_memref(x))
ClosedPublic

Authored by springerm on Jul 8 2022, 2:53 AM.

Details

Summary

This is a partial revert of D128615.

to_memref(to_tensor(x)) always be folded to x. But to_tensor(to_memref(x)) cannot be folded in the general case because writes to the intermediary memref may go unnoticed.

Diff Detail