[mlir] Add hoisting of transfer ops in affine loops
authorJavier Setoain <javier.setoain@gmail.com>
Mon, 7 Nov 2022 21:27:36 +0000 (21:27 +0000)
committerJavier Setoain <javier.setoain@gmail.com>
Wed, 7 Dec 2022 20:08:07 +0000 (20:08 +0000)
commitda291bab81200c93dffaa809a894168b7dedffd8
tree1e88479d85b20490c56b1f56f03b7a8d48d88b85
parent19cde2df95f379d05fbb599f7d601003718dc91a
[mlir] Add hoisting of transfer ops in affine loops

The only way to do this with the current hoisting strategy is by
lowering Affine to Scf first, but that prevents further passes on
Affine.

Differential Revision: https://reviews.llvm.org/D137600
mlir/lib/Dialect/Linalg/Transforms/Hoisting.cpp
mlir/test/Dialect/Linalg/hoisting.mlir