[Mlir-commits] [mlir] [mlir][Arith] Fix crash when folding operations with dynamic-shaped tensors (PR #178428)

Jakub Kuderski llvmlistbot at llvm.org
Wed Jan 28 06:28:52 PST 2026


kuhar wrote:

> Added a LIT test for arith.select with dynamic-shaped tensors (@select_dynamic_shape_const_condition). Note that the DenseElementsAttr fold path itself cannot be triggered with dynamic shapes since DenseElementsAttr requires static shapes by construction, but the check serves as a defensive guard and the test verifies the scalar condition path works correctly with dynamic tensor operands.

Turn this into an assertion instead then.

https://github.com/llvm/llvm-project/pull/178428


More information about the Mlir-commits mailing list