================
@@ -1056,7 +1056,8 @@ class CIRCleanupScopeOpFlattening
// because break and continue never branch out of the loop.
auto collectExitsInLoop = [&](mlir::Operation *loopOp) {
loopOp->walk<mlir::WalkOrder::PreOrder>([&](mlir::Operation *nestedOp) {
- if (isReturnThatExitsCleanup(nestedOp)) {
+ if (isa<cir::CoroCleanupOp>(nestedOp) ||
----------------
andykaylor wrote:
The `else if` below could also be folded into this condition. I looked at the
PR where I made it a separate condition, and I initially had a reason for
making it separate, but that reason went away after I implemented a suggested
change, and I guess I just failed to see the obvious further simplification.
https://github.com/llvm/llvm-project/pull/203802
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits