[mlir][vector] Fix cast incompatible type bug in `ShuffleOp::fold` (#150037)

This PR uses `dyn_cast` instead of `cast` to avoid a crash when the
constant attribute is not a `DenseElementsAttr`. Fixes #149325.

GitOrigin-RevId: 8937b61f21fcd60ab1b19db6e755053364584d18
2 files changed
tree: e8db0f0b68ebdf8daa279e429d6276a8af390e60
  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.