[Mlir-commits] [mlir] [mlir][tosa] Harden folds/canonicalizations for unranked and dynamic shapes (PR #188188)

Hocky Yudhiono llvmlistbot at llvm.org
Thu Mar 26 04:31:53 PDT 2026


================
@@ -2009,6 +2020,8 @@ OpFoldResult tosa::ReciprocalOp::fold(FoldAdaptor adaptor) {
     return {};
 
   auto shapeType = llvm::cast<ShapedType>(getType());
+  if (!shapeType.hasStaticShape())
----------------
hockyy wrote:

Addressed

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


More information about the Mlir-commits mailing list