From af2d2d775908734f2a71a70a24ad540760f2d88b Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sun, 7 Aug 2022 00:16:13 -0700 Subject: [mlir] Remove redundaunt return statements (NFC) Identified with readability-redundant-control-flow. --- mlir/lib/Transforms/Utils/CommutativityUtils.cpp | 3 --- 1 file changed, 3 deletions(-) (limited to 'mlir/lib') 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; } }; -- cgit v1.2.3