[all-commits] [llvm/llvm-project] 2a7b2e: [mlir][vector] Fix crash in `vector.insert` canoni...

Matthias Springer via All-commits all-commits at lists.llvm.org
Fri Jul 5 02:24:02 PDT 2024


  Branch: refs/heads/users/matthias-springer/vector_insert_regression
  Home:   https://github.com/llvm/llvm-project
  Commit: 2a7b2e63668b6dc645eb7372cf23598a476654a9
      https://github.com/llvm/llvm-project/commit/2a7b2e63668b6dc645eb7372cf23598a476654a9
  Author: Matthias Springer <mspringer at nvidia.com>
  Date:   2024-07-05 (Fri, 05 Jul 2024)

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

  Log Message:
  -----------
  [mlir][vector] Fix crash in `vector.insert` canonicalization

The `InsertOpConstantFolder` assumed that whenever the destination can be folded to a constant attribute, that attribute must be a `DenseElementsAttr`. That is is not necessarily the case.



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