Support AllocOp terminal in Linalg::AliasAnalysis.
authorNicolas Vasilache <ntv@google.com>
Mon, 7 Oct 2019 16:00:39 +0000 (09:00 -0700)
committerA. Unique TensorFlower <gardener@tensorflow.org>
Mon, 7 Oct 2019 16:01:18 +0000 (09:01 -0700)
commit9f98bcda47f1d1a20d584471dc8541777bc61413
treeb2d621fbb2acb3ae408ae5ccac919e8e0f4c46af
parent27e8efedf868303961b8b081151c5dfe42acb9a5
Support AllocOp terminal in Linalg::AliasAnalysis.

Now that linalg.view and strided memrefs are unified, there is no reason to
disallow AllocOp in alias analysis. This CLs adds support for AllocOp which allows writing shorter tests that do not require explicitly creating a view for
each operation.

PiperOrigin-RevId: 273303060
mlir/lib/Dialect/Linalg/Analysis/DependenceAnalysis.cpp
mlir/lib/Dialect/Linalg/CMakeLists.txt
mlir/test/Dialect/Linalg/fusion.mlir