[mlir] Type erase inputs to select statements in shape.broadcast lowering.
authorTres Popp <tpopp@google.com>
Fri, 9 Oct 2020 14:45:50 +0000 (16:45 +0200)
committerTres Popp <tpopp@google.com>
Sun, 11 Oct 2020 19:58:06 +0000 (21:58 +0200)
commit8178e41dc1a395fc0a99f945bf27fbfca871d3e5
tree0abc16dc21cb129e1395d14782aba74dbecca62c
parentf82346fd7391fdd15b77355deb6f7c030a89dcb5
[mlir] Type erase inputs to select statements in shape.broadcast lowering.

This is required or broadcasting with operands of different ranks will lead to
failures as the select op requires both possible outputs and its output type to
be the same.

Differential Revision: https://reviews.llvm.org/D89134
mlir/lib/Conversion/ShapeToStandard/ShapeToStandard.cpp
mlir/test/Conversion/ShapeToStandard/shape-to-standard.mlir