[Mlir-commits] [mlir] [mlir][Arith] Fix crash when folding operations with dynamic-shaped tensors (PR #178428)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Wed Jan 28 06:13:36 PST 2026
mugiwaraluffy56 wrote:
Hi @kuhar, could you please review this fix when you have a chance?
This PR addresses issue #178415 where `mlir-opt` crashes with an assertion failure when folding arith operations with dynamic-shaped tensors. The fix adds checks to return early (skip folding) when the result type has a dynamic shape, since `DenseElementsAttr::get` requires a static shape.
Thanks!
https://github.com/llvm/llvm-project/pull/178428
More information about the Mlir-commits
mailing list