summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMehdi Amini <joker.eph@gmail.com>2022-01-08 22:13:51 +0000
committerMehdi Amini <joker.eph@gmail.com>2022-01-10 01:05:14 +0000
commit60d13b85ca13c7766eb7d65614b15996f19ed710 (patch)
tree89e6beebafb55336533bbbfc0bbaf6f4ae9d03a3
parentba19fa5779f309db9f39629e35c1674589e75419 (diff)
downloadllvm-60d13b85ca13c7766eb7d65614b15996f19ed710.tar.gz
Apply clang-tidy fixes for performance-move-const-arg in ReductionNode.cpp (NFC)
-rw-r--r--mlir/lib/Reducer/ReductionNode.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/mlir/lib/Reducer/ReductionNode.cpp b/mlir/lib/Reducer/ReductionNode.cpp
index 2288b0ac0be1..957ce1d21ad5 100644
--- a/mlir/lib/Reducer/ReductionNode.cpp
+++ b/mlir/lib/Reducer/ReductionNode.cpp
@@ -63,7 +63,7 @@ ArrayRef<ReductionNode *> ReductionNode::generateNewVariants() {
for (const Range &range : getRanges()) {
std::vector<Range> subRanges = getRanges();
llvm::erase_value(subRanges, range);
- variants.push_back(createNewNode(std::move(subRanges)));
+ variants.push_back(createNewNode(subRanges));
}
return getVariants().drop_front(oldNumVariant);
@@ -91,7 +91,7 @@ ArrayRef<ReductionNode *> ReductionNode::generateNewVariants() {
*subRangesIter = std::make_pair(maxRange.first, half);
variants.push_back(createNewNode(subRanges));
*subRangesIter = std::make_pair(half, maxRange.second);
- variants.push_back(createNewNode(std::move(subRanges)));
+ variants.push_back(createNewNode(subRanges));
auto it = ranges.insert(maxElement, std::make_pair(half, maxRange.second));
it = ranges.insert(it, std::make_pair(maxRange.first, half));