llvm-project/mlir/tools/mlir-opt
Nicolas Vasilache 0fa20ecafe [mlir][Affine] Add helper functions to allow reordering affine.apply operands and decompose the ops into smaller components
Care is taken to order operands from least hoistable to most hoistable and to process subexpressions in the same
order.

This allows exposing more oppportunities for licm, cse and strength reduction.

Such a step should typically be applied while we still have loops in the IR and just before lowering affine ops to arith.
This is because the affine.apply canonicalization currently tries to maximally compose chains of affine.apply operations
and could undo the effects of these decompositions.

Depends on: D145784

Differential Revision: https://reviews.llvm.org/D145685
2023-03-14 04:07:32 -07:00
..
CMakeLists.txt [mlir][spirv][vector] Add pattern to convert reduction to SPIR-V dot prod 2023-03-10 13:54:16 -05:00
mlir-opt.cpp [mlir][Affine] Add helper functions to allow reordering affine.apply operands and decompose the ops into smaller components 2023-03-14 04:07:32 -07:00