[Mlir-commits] [mlir] [mlir][shape] Fix crash in ShapeOfOpToConstShapeOp (PR #180737)

Matthias Springer llvmlistbot at llvm.org
Tue Feb 10 06:25:06 PST 2026


================
@@ -1626,3 +1626,14 @@ func.func @shape_of_0d(%arg0: tensor<f32>) -> tensor<?xindex> {
   %0 = shape.shape_of %arg0 : tensor<f32> -> tensor<?xindex>
   return %0 : tensor<?xindex>
 }
+
+// -----
+
+// Ensure this case not crash.
----------------
matthias-springer wrote:

nit: you can drop this comment

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


More information about the Mlir-commits mailing list