[all-commits] [llvm/llvm-project] 93b05d: [mlir][vector] Fix crashes in `from_elements` fold...

Matthias Springer via All-commits all-commits at lists.llvm.org
Tue Aug 26 03:49:44 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 93b05dd07697cad258128fdabecaa1d54f1aea8c
      https://github.com/llvm/llvm-project/commit/93b05dd07697cad258128fdabecaa1d54f1aea8c
  Author: Matthias Springer <me at m-sp.org>
  Date:   2025-08-26 (Tue, 26 Aug 2025)

  Changed paths:
    M mlir/lib/Dialect/Vector/IR/VectorOps.cpp
    M mlir/test/Dialect/Vector/canonicalize.mlir
    M mlir/test/Dialect/Vector/ops.mlir

  Log Message:
  -----------
  [mlir][vector] Fix crashes in `from_elements` folder + `broadcast` verifier (#155393)

This PR fixes two crashes / failures.

1. The `vector.broadcast` verifier did not take into account
`VectorElementTypeInterface` and was looking for int/index/float types.
2. The `vector.from_elements` folder attempted to create an invalid
`DenseElementsAttr`. Only int/float/index/complex types are supported.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list