[Mlir-commits] [mlir] [mlir][tosa] Fix check for isolated regions in `tosa.cond_if` (PR #143772)
Jack Frankland
llvmlistbot at llvm.org
Wed Jul 16 06:00:00 PDT 2025
================
@@ -1229,18 +1252,15 @@ bool checkErrorIfCondIf(Operation *op) {
mlir::Region &thenGraph = ifOp.getThenGraph();
mlir::Region &elseGraph = ifOp.getElseGraph();
- bool isThenGraphNullaryRegion = isNullaryRegion(thenGraph);
- bool isElseGraphNullaryRegion = isNullaryRegion(elseGraph);
- bool isInputListEmpty = ifOp.getInputList().size() == 0;
+ bool isThenGraphIsolatedRegion = isIsolatedRegion(thenGraph);
----------------
FranklandJack wrote:
Whilst we are here, could we make these bools `const`?
https://github.com/llvm/llvm-project/pull/143772
More information about the Mlir-commits
mailing list