[all-commits] [llvm/llvm-project] 221705: [mlir][Intrange] Fix materializing ShapedType cons...

jeffniu-openai via All-commits all-commits at lists.llvm.org
Fri Sep 12 13:26:24 PDT 2025


  Branch: refs/heads/users/mogball/fix_intrange
  Home:   https://github.com/llvm/llvm-project
  Commit: 2217053dc5591ae0a794d82db3146f08ad6e5aa8
      https://github.com/llvm/llvm-project/commit/2217053dc5591ae0a794d82db3146f08ad6e5aa8
  Author: Jeff Niu <jeffniu at openai.com>
  Date:   2025-09-12 (Fri, 12 Sep 2025)

  Changed paths:
    M mlir/lib/Analysis/DataFlow/IntegerRangeAnalysis.cpp
    M mlir/lib/Dialect/Arith/Transforms/IntRangeOptimizations.cpp
    M mlir/test/Dialect/Arith/int-range-opts.mlir

  Log Message:
  -----------
  [mlir][Intrange] Fix materializing ShapedType constant values

When materializing integer ranges of splat tensors or vector as
constants, they should use DenseElementsAttr of the shaped type, not
IntegerAttrs of the element types, since this can violate the invariants
of tensor/vector ops.



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