[mlir][vector] Add a check to ensure input vector rank equals target shape rank (#149239)

The crash is caused because, during IR transformation, the
vector-unrolling pass (using ExtractStridedSliceOp) attempts to slice an
input vector of higher rank using a target vector of lower rank, which
is not supported. Fixes #148368.

GitOrigin-RevId: 75aa629269c2cea94352f4029a84668bf157dc86
2 files changed
tree: 23de3ec9917c51b4d09133a7ba4ba7e99d4ac35a
  1. benchmark/
  2. cmake/
  3. docs/
  4. examples/
  5. include/
  6. lib/
  7. python/
  8. test/
  9. tools/
  10. unittests/
  11. utils/
  12. .clang-format
  13. .clang-tidy
  14. CMakeLists.txt
  15. LICENSE.TXT
  16. README.md
README.md

Multi-Level Intermediate Representation

See https://mlir.llvm.org/ for more information.