[mlir] Remove redundaunt return statements (NFC)
Identified with readability-redundant-control-flow.
This commit is contained in:
parent
3b114087c3
commit
af2d2d7759
|
@ -119,7 +119,6 @@ struct CommutativeOperand {
|
|||
ancestorQueue.push(op);
|
||||
if (op)
|
||||
visitedAncestors.insert(op);
|
||||
return;
|
||||
}
|
||||
|
||||
/// Refresh the key.
|
||||
|
@ -136,7 +135,6 @@ struct CommutativeOperand {
|
|||
Operation *frontAncestor = ancestorQueue.front();
|
||||
AncestorKey frontAncestorKey(frontAncestor);
|
||||
key.push_back(frontAncestorKey);
|
||||
return;
|
||||
}
|
||||
|
||||
/// Pop the front ancestor, if any, from the queue and then push its adjacent
|
||||
|
@ -154,7 +152,6 @@ struct CommutativeOperand {
|
|||
if (!operandDefOp || !visitedAncestors.contains(operandDefOp))
|
||||
pushAncestor(operandDefOp);
|
||||
}
|
||||
return;
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue