[Mlir-commits] [mlir] Fixes in 'tosa.reshape' lowering and folder (PR #85798)
Mehdi Amini
llvmlistbot at llvm.org
Fri Mar 22 20:09:37 PDT 2024
================
@@ -970,6 +970,11 @@ mlir::LogicalResult tosa::ReshapeOp::verify() {
<< " elements into " << outputElementsNum;
}
}
+
+ int missingDims = std::count(getNewShape().begin(), getNewShape().end(), -1);
----------------
joker-eph wrote:
```suggestion
int missingDims = llvm::count(getNewShape(), -1);
```
https://github.com/llvm/llvm-project/pull/85798
More information about the Mlir-commits
mailing list