onnx-mlir
onnx-mlir copied to clipboard
Loop collapsing with fusion
This PR handles loop collapsing in op fusion. There are two parts:
- Decide which loops to be collapsed. When ops are fused, all its operands should be checked whether its dimensions are involved in broadcasting. Such information will be used to decide which loops should be collapsed.
- Code generation when some loops are collapsed.