Skip to content

Commit 9f6043e

Browse files
committed
clean up.
1 parent 56dddbd commit 9f6043e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/lib/Dialect/SCF/IR/SCF.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3590,7 +3590,7 @@ struct WhileMoveIfDown : public OpRewritePattern<WhileOp> {
35903590

35913591
Value condVal = condOp.getResult(0);
35923592
auto ifOp = dyn_cast<scf::IfOp>(condOp.getNextNode());
3593-
if (condOp.getNumResults() != 1 || !ifOp || ifOp.getCondition() != condVal)
3593+
if (!ifOp || ifOp.getCondition() != condVal)
35943594
return failure();
35953595

35963596
auto term = dyn_cast<scf::ConditionOp>(ifOp->getNextNode());

0 commit comments

Comments
 (0)