llvm-project
b4e8b8ee - [mlir][vector] Canonicalize broadcast of shape_cast (#150523)

Commit
143 days ago
[mlir][vector] Canonicalize broadcast of shape_cast (#150523) Fold `broadcast(shape_cast(x))` into `broadcast(x)` if the type of x is compatible with broadcast's result type and the shape_cast only adds or removes ones in the leading dimensions. --------- Co-authored-by: Andrzej WarzyƄski <andrzej.warzynski@gmail.com> Co-authored-by: James Newling <james.newling@gmail.com>
Author
Parents
Loading