llvm-project
a74bfc06 - [mlir][tosa] Fix select folder when operands are broadcast (#165481)

Commit
25 days ago
[mlir][tosa] Fix select folder when operands are broadcast (#165481) This commit addresses a crash in the dialects folder. The currently folder assumes no broadcasting of the input operand happens and therefore the folder can complain that the returned value was not the same shape as the result. For now, this commit ensures no folding happens when broadcasting is involved. In the future, folding with a broadcast could likely be supported by inserting a `tosa.tile` operation before returning the operand. This type of transformation is likely better suited for a canonicalization pass. This commit only aims to avoid the crash.
Author
Parents
Loading