Added check if there are regions that do not implement the RegionBranchOpInterface.
authorJulian Gross <julian.gross@dfki.de>
Wed, 13 Jan 2021 10:13:41 +0000 (11:13 +0100)
committerJulian Gross <julian.gross@dfki.de>
Wed, 20 Jan 2021 11:15:28 +0000 (12:15 +0100)
commit43f34f58349ae178fd1c95d6a73c6858f35f2ea1
treedee3ac21fc18982db537d2277b874f464c8085fa
parentcf50f4f764566a78da8c0551f853118fe604d8d7
Added check if there are regions that do not implement the RegionBranchOpInterface.

Add a check if regions do not implement the RegionBranchOpInterface. This is not
allowed in the current deallocation steps. Furthermore, we handle edge-cases,
where a single region is attached and the parent operation has no results.

This fixes: https://bugs.llvm.org/show_bug.cgi?id=48575

Differential Revision: https://reviews.llvm.org/D94586
mlir/lib/Transforms/BufferDeallocation.cpp
mlir/test/Transforms/buffer-deallocation.mlir