[mlir][scf] Create constants for tiling in parent with isolated region.
authorOleg Shyshkov <shyshkov@google.com>
Thu, 30 Mar 2023 21:18:21 +0000 (23:18 +0200)
committerOleg Shyshkov <shyshkov@google.com>
Fri, 31 Mar 2023 16:27:30 +0000 (18:27 +0200)
commitf080f1122f42ec71571081343f7ef2dcc237a02c
treeaa5d548c431a2c565f97b28ba0441e7eeb3b90dd
parentb1e5d0d671b62db0a5122047ec7025ce4b7fead6
[mlir][scf] Create constants for tiling in parent with isolated region.

FuncOp is IsolatedFromAbove, so this change doesn't alter current behaviour, but the current code fails if the tile op is in an op with IsolatedFromAbove trait.

An alternative would be to create constant in the same region where they're used a rely on CSE to figure out where to move them.

Differential Revision: https://reviews.llvm.org/D147273
mlir/lib/Dialect/SCF/Transforms/TileUsingInterface.cpp