diff options
author | Kazu Hirata <kazu@google.com> | 2022-08-07 00:16:13 -0700 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2022-08-07 00:16:13 -0700 |
commit | af2d2d775908734f2a71a70a24ad540760f2d88b (patch) | |
tree | eecf0b48be8c5565c1e9b78c0a4af8ff1b02eb3c /mlir/lib | |
parent | 3b114087c34bc1428b157eff8ca8599f7d2380f9 (diff) |
[mlir] Remove redundaunt return statements (NFC)
Identified with readability-redundant-control-flow.
Diffstat (limited to 'mlir/lib')
-rw-r--r-- | mlir/lib/Transforms/Utils/CommutativityUtils.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/mlir/lib/Transforms/Utils/CommutativityUtils.cpp b/mlir/lib/Transforms/Utils/CommutativityUtils.cpp index 57cc3a295825..6034366631d1 100644 --- a/mlir/lib/Transforms/Utils/CommutativityUtils.cpp +++ b/mlir/lib/Transforms/Utils/CommutativityUtils.cpp @@ -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; } }; |