[all-commits] [llvm/llvm-project] 1c4b04: [mlir] Fix crash in `InsertOpConstantFolder` when ...

Rajveer Singh Bharadwaj via All-commits all-commits at lists.llvm.org
Sun Sep 8 16:44:51 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1c4b04ce1f022ec12b0111ad75d8f2f0eec3b054
      https://github.com/llvm/llvm-project/commit/1c4b04ce1f022ec12b0111ad75d8f2f0eec3b054
  Author: Rajveer Singh Bharadwaj <rajveer.developer at icloud.com>
  Date:   2024-09-09 (Mon, 09 Sep 2024)

  Changed paths:
    M mlir/lib/Dialect/Vector/IR/VectorOps.cpp
    M mlir/test/Dialect/LLVMIR/constant-folding.mlir

  Log Message:
  -----------
  [mlir] Fix crash in `InsertOpConstantFolder` when vector.insert operand is from a llvm.mlir.constant op (#88314)

In cases where llvm.mlir.constant has an attribute with a different type than the returned type,
the folder use to create an incorrect DenseElementsAttr and crash.

Resolves #74236



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