[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>
Tue, 6 Dec 2022 10:07:21 +0000 (10:07 +0000)
commit825da072a8ede585be9d23829f7ac483f2dbae78
tree0db0b09090cfb3b5c56ca87d5b39ad63a7beb0d9
parent6dac170140d09c23b305558939dc45416f0ec865
[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