[Mlir-commits] [mlir] [mlir][tosa] Check for isolated regions in `tosa.while_loop` (PR #144865)
Luke Hutton
llvmlistbot at llvm.org
Mon Jul 21 04:56:27 PDT 2025
================
@@ -1193,61 +1193,99 @@ bool checkErrorIfPad(Operation *op) {
return true;
}
-// Returns true if the operation takes no input operands, excluding attributes.
-static bool isNullaryOperation(Operation *op) {
- if (isa<tosa::ConstOp>(op) || isa<tosa::ConstShapeOp>(op) ||
- isa<tosa::YieldOp>(op) || isa<tosa::VariableOp>(op))
- return true;
- return false;
+static bool isOpIsolatedFromAbove(Operation *op, Region ®ion) {
----------------
lhutton1 wrote:
Yes, the latter is correct. Since the cond_if changes have been merged, this PR now only contains the while_loop changes
https://github.com/llvm/llvm-project/pull/144865
More information about the Mlir-commits
mailing list