[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:24:28 PDT 2026
================
@@ -1554,6 +1571,8 @@ OpFoldResult CastOp::fold(FoldAdaptor adaptor) {
auto inTy = llvm::cast<ShapedType>(getInput().getType());
auto outTy = llvm::cast<ShapedType>(getType());
+ if (!outTy.hasStaticShape())
----------------
hockyy wrote:
whoops sharp catch, i wish shaped type has this properties built in
https://github.com/llvm/llvm-project/pull/188188
More information about the Mlir-commits
mailing list