[Mlir-commits] [mlir] [mlir][tosa] Harden folds/canonicalizations for unranked and dynamic shapes (PR #188188)
Luke Hutton
llvmlistbot at llvm.org
Thu Mar 26 03:32:23 PDT 2026
================
@@ -994,6 +1008,9 @@ static DenseElementsAttr unaryFolder(DenseElementsAttr val, ShapedType returnTy,
if (!val)
return {};
+ if (!returnTy || !returnTy.hasStaticShape())
----------------
lhutton1 wrote:
Same as above
https://github.com/llvm/llvm-project/pull/188188
More information about the Mlir-commits
mailing list