[Mlir-commits] [mlir] [MLIR][Shape] Fix crash in ShapeOfOp canonicalization during inlining (PR #178839)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Mon Feb 9 12:14:32 PST 2026
https://github.com/Sejal-07661 commented:
Fix ShapeOfOp canonicalization when the result is an extent tensor with dynamic type (e.g. tensor<?xindex>). Build shape.const_shape using the concrete ranked tensor type implied by the static shape (tensor<Rxindex>), and insert a tensor.cast to the requested result type when needed. Updated canonicalize.mlir with a regression test covering !shape.shape, tensor<Rxindex>, and tensor<?xindex>. All Shape dialect tests pass locally.
https://github.com/llvm/llvm-project/pull/178839
More information about the Mlir-commits
mailing list