HomePhabricator

[MLIR] Don't remove memref allocation if stored into another allocation

Authored by wsmoses on Jun 25 2021, 1:16 PM.

Description

[MLIR] Don't remove memref allocation if stored into another allocation

A canonicalization accidentally will remove a memref allocation if it is only stored into. However, this is incorrect if the allocation is the value being stored, not the allocation being stored into.

Differential Revision: https://reviews.llvm.org/D104947