[mlir][tosa] Make tosa MakeBroadcastable pass handle unreanked tensors.
authorRob Suderman <rob.suderman@gmail.com>
Fri, 23 Jul 2021 00:22:11 +0000 (17:22 -0700)
committerRob Suderman <rob.suderman@gmail.com>
Fri, 23 Jul 2021 00:57:05 +0000 (17:57 -0700)
commit286e7bdd3ea4f1c7a90a2877e28f353dcd9a7493
tree1b91f3f303f768e97bef74c973540f9a850e0a2d
parent51d8e67e88d1b673c20a61ef4fac201bc15ae664
[mlir][tosa] Make tosa MakeBroadcastable pass handle unreanked tensors.

If this pass executes without shape inference its possible for unranked tensors
to appear in the IR. This pass should gracefully handle unranked tensors.

Differential Revision: https://reviews.llvm.org/D106617
mlir/lib/Dialect/Tosa/Transforms/TosaMakeBroadcastable.cpp