llvm-project
2fb53f37 - [mlir][tosa] Fix for incorrect cannonicalization of tosa.pad (#98356)

Commit
1 year ago
[mlir][tosa] Fix for incorrect cannonicalization of tosa.pad (#98356) The current fold method for tosa.pad can produce invalid IR by replacing the padded value with the tosa.pad is a noop. When the type of the input value does not match the type of the tosa.pad, the canonicalizer detects the change in types and asserts. This change addresses the issue by avoiding folding when the input and result types do not match.
Author
Parents
Loading