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

Longsheng Mou llvmlistbot at llvm.org
Tue Feb 10 06:54:53 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.
----------------
CoTinker wrote:

done

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


More information about the Mlir-commits mailing list