Skip to content

Commit 60d13b8

Browse files
committed
Apply clang-tidy fixes for performance-move-const-arg in ReductionNode.cpp (NFC)
1 parent ba19fa5 commit 60d13b8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mlir/lib/Reducer/ReductionNode.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ ArrayRef<ReductionNode *> ReductionNode::generateNewVariants() {
6363
for (const Range &range : getRanges()) {
6464
std::vector<Range> subRanges = getRanges();
6565
llvm::erase_value(subRanges, range);
66-
variants.push_back(createNewNode(std::move(subRanges)));
66+
variants.push_back(createNewNode(subRanges));
6767
}
6868

6969
return getVariants().drop_front(oldNumVariant);
@@ -91,7 +91,7 @@ ArrayRef<ReductionNode *> ReductionNode::generateNewVariants() {
9191
*subRangesIter = std::make_pair(maxRange.first, half);
9292
variants.push_back(createNewNode(subRanges));
9393
*subRangesIter = std::make_pair(half, maxRange.second);
94-
variants.push_back(createNewNode(std::move(subRanges)));
94+
variants.push_back(createNewNode(subRanges));
9595

9696
auto it = ranges.insert(maxElement, std::make_pair(half, maxRange.second));
9797
it = ranges.insert(it, std::make_pair(maxRange.first, half));

0 commit comments

Comments
 (0)