aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2022-08-07 00:16:13 -0700
committerKazu Hirata <kazu@google.com>2022-08-07 00:16:13 -0700
commitaf2d2d775908734f2a71a70a24ad540760f2d88b (patch)
treeeecf0b48be8c5565c1e9b78c0a4af8ff1b02eb3c
parent3b114087c34bc1428b157eff8ca8599f7d2380f9 (diff)
[mlir] Remove redundaunt return statements (NFC)
Identified with readability-redundant-control-flow.
-rw-r--r--mlir/lib/Transforms/Utils/CommutativityUtils.cpp3
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;
}
};