[Mlir-commits] [mlir] [mlir][tosa] Check for isolated regions in `tosa.while_loop` (PR #144865)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Wed Jul 16 07:23:45 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) {
----------------
udaya-ranga wrote:
Will there just be 1 copy after merging this and the other review for `cond.if` ?
https://github.com/llvm/llvm-project/pull/144865
More information about the Mlir-commits
mailing list