[mlir] Reorder shape assuming bufferization.
authorTres Popp <tpopp@google.com>
Thu, 29 Oct 2020 10:01:05 +0000 (11:01 +0100)
committerTres Popp <tpopp@google.com>
Thu, 29 Oct 2020 10:36:05 +0000 (11:36 +0100)
commit9dbffe4a28f46a9fd5dab36bf443a090588ac6de
treef792c4ea2f01279c579890862428506c37bd82f5
parent840737fc82277f5303708ff062cdedd084248631
[mlir] Reorder shape assuming bufferization.

The previous ordering continued to use the original assuming after
replacing it which is not allowed. Now, inline the region from the old
into the new before the replacement.

Differential Revision: https://reviews.llvm.org/D90375
mlir/lib/Dialect/Shape/Transforms/StructuralTypeConversions.cpp