[all-commits] [llvm/llvm-project] b9ce18: [MLIR][LLVM] Fix #llvm.constant_range crashing in ...

Robert Konicar via All-commits all-commits at lists.llvm.org
Wed Apr 16 02:49:40 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b9ce185d4e542dde5e8d152f30314b6637a0d87b
      https://github.com/llvm/llvm-project/commit/b9ce185d4e542dde5e8d152f30314b6637a0d87b
  Author: Robert Konicar <rkonicar at mail.muni.cz>
  Date:   2025-04-16 (Wed, 16 Apr 2025)

  Changed paths:
    M mlir/include/mlir/Dialect/LLVMIR/LLVMAttrDefs.td
    M mlir/include/mlir/IR/AttrTypeBase.td
    A mlir/test/Dialect/LLVMIR/range-attr.mlir

  Log Message:
  -----------
  [MLIR][LLVM] Fix #llvm.constant_range crashing in storage uniquer (#135772)

Add APIntParameter with custom implementation for comparison and use it
in llvm.constant_range attribute. This is necessary because the default
equality operator of APInt asserts when the bit widths of the compared
APInts differ. The comparison is used by StorageUniquer when hashes of
two ranges with different bit widths collide.



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