[Mlir-commits] [mlir] [MLIR][Shape] Fix crash in ShapeOfOp canonicalization during inlining (PR #178839)

Matthias Springer llvmlistbot at llvm.org
Thu Feb 5 23:19:04 PST 2026


================

----------------
matthias-springer wrote:

Can you add additional ops here and return result along with `%0`.

```
%1 = shape.shape_of %arg0 : tensor<2x3xi32> -> tensor<3xindex>
%2 = shape.shape_of %arg0 : tensor<2x3xi32> -> tensor<?xindex>
```

I feel like the `tensor.cast` may still be needed in some cases.


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


More information about the Mlir-commits mailing list