[mlir][vector] Handle scalars in extract_strided_slice(broadcast)
authorLei Zhang <antiagainst@google.com>
Fri, 1 Apr 2022 16:07:25 +0000 (12:07 -0400)
committerLei Zhang <antiagainst@google.com>
Fri, 1 Apr 2022 16:07:47 +0000 (12:07 -0400)
commit57b101bdec15c3ed421972ddf1d10f1de3c1f8c1
treef71cac6cce0a8e390ac011a6c407af8d53a671b9
parent533ec929f67d0169f247cb73835a127053cc5933
[mlir][vector] Handle scalars in extract_strided_slice(broadcast)

For such cases we cannot generate extract_strided_slice ops.

Reviewed By: ThomasRaoux

Differential Revision: https://reviews.llvm.org/D122902
mlir/lib/Dialect/Vector/IR/VectorOps.cpp
mlir/test/Dialect/Vector/canonicalize.mlir