Consecutive concats that happen on the same axis can be folded into a single, bigger concat. This patch implements this folding by implementing the tosa::ConcatOp::fold method.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Thanks for the review. Landed in 295a6ed5d54aca2d923b76b6388f9732eb37f548
mlir/lib/Dialect/Tosa/IR/TosaCanonicalizations.cpp | ||
---|---|---|
1058 | Thanks. I have updated the comment in the commit as suggested. |
The variable name can be more descriptive like findFoldableOperand or findFoldableConcat ?