[all-commits] [llvm/llvm-project] 7af5c4: [mlir][tosa] Fix mul/intdiv folds crashing on dyna...
Victor Perez via All-commits
all-commits at lists.llvm.org
Sat Jul 25 16:59:30 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 7af5c42beb1d76a5335ef5095c6bd58331a882b8
https://github.com/llvm/llvm-project/commit/7af5c42beb1d76a5335ef5095c6bd58331a882b8
Author: Victor Perez <victor.pc.upm at gmail.com>
Date: 2026-07-25 (Sat, 25 Jul 2026)
Changed paths:
M mlir/lib/Dialect/Tosa/IR/TosaCanonicalizations.cpp
M mlir/test/Dialect/Tosa/canonicalize.mlir
Log Message:
-----------
[mlir][tosa] Fix mul/intdiv folds crashing on dynamic-shaped results (#212073)
`tosa.mul` and `tosa.intdiv` fold constant splat operands by building a
`DenseElementsAttr` of the result type, which asserts when that type has
a dynamic shape. When the operands are constants but the result type is
dynamic, folding aborted. Guard `mulBinaryFolder` and the `IntDivOp`
splat path on a static result shape, matching the other fold paths in
these ops.
Signed-off-by: Víctor Pérez Carrasco <victor.pc.upm at gmail.com>
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