[Mlir-commits] [mlir] [mlir][tosa] Fix unranked tosa canonicalizations crashes (PR #188188)
Luke Hutton
llvmlistbot at llvm.org
Tue Mar 24 03:24:53 PDT 2026
================
@@ -1502,7 +1521,7 @@ OpFoldResult GreaterOp::fold(FoldAdaptor adaptor) {
auto rhsAttr =
llvm::dyn_cast_if_present<DenseElementsAttr>(adaptor.getInput2());
- if (!lhsAttr || !rhsAttr)
+ if (!resultTy || !lhsAttr || !rhsAttr)
----------------
lhutton1 wrote:
The same crash seems possible if the result type is ranked, but not static
https://github.com/llvm/llvm-project/pull/188188
More information about the Mlir-commits
mailing list