[mlir][linalg] Do not check if added dimension are static in linalg.broadcast.
authorOleg Shyshkov <shyshkov@google.com>
Fri, 18 Nov 2022 13:45:33 +0000 (14:45 +0100)
committerOleg Shyshkov <shyshkov@google.com>
Fri, 18 Nov 2022 14:51:13 +0000 (15:51 +0100)
commit244105f791539a84eeef7e8e50c180e413675b60
tree2cc0fbceff63fe3b02e8f39ff503392f4eb66c21
parentd731d6df642b23b993c1a3ce392036a076906425
[mlir][linalg] Do not check if added dimension are static in linalg.broadcast.

Added dimensions can be both static and dinamic. Mapped dimension should be the same in the input and the init.

Differential Revision: https://reviews.llvm.org/D138291
mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp
mlir/test/Dialect/Linalg/invalid.mlir