Skip to content

Commit b39ffba

Browse files
Review Changes
1 parent 9d4c10f commit b39ffba

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

llvm/lib/CodeGen/GlobalISel/LegalityPredicates.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ LegalityPredicates::typeInSet(unsigned TypeIdx,
3535
std::initializer_list<LLT> TypesInit) {
3636
SmallVector<LLT, 4> Types = TypesInit;
3737
return [=](const LegalityQuery &Query) {
38-
return llvm::is_contained(std::move(Types), Query.Types[TypeIdx]);
38+
return llvm::is_contained(Types, Query.Types[TypeIdx]);
3939
};
4040
}
4141

@@ -45,7 +45,7 @@ LegalityPredicate LegalityPredicates::typePairInSet(
4545
SmallVector<std::pair<LLT, LLT>, 4> Types = TypesInit;
4646
return [=](const LegalityQuery &Query) {
4747
std::pair<LLT, LLT> Match = {Query.Types[TypeIdx0], Query.Types[TypeIdx1]};
48-
return llvm::is_contained(std::move(Types), Match);
48+
return llvm::is_contained(Types, Match);
4949
};
5050
}
5151

@@ -56,7 +56,7 @@ LegalityPredicate LegalityPredicates::typeTupleInSet(
5656
return [=](const LegalityQuery &Query) {
5757
std::tuple<LLT, LLT, LLT> Match = {
5858
Query.Types[TypeIdx0], Query.Types[TypeIdx1], Query.Types[TypeIdx2]};
59-
return llvm::is_contained(std::move(Types), Match);
59+
return llvm::is_contained(Types, Match);
6060
};
6161
}
6262

llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6824,7 +6824,7 @@ SDValue SelectionDAG::FoldConstantArithmetic(unsigned Opcode, const SDLoc &DL,
68246824
continue;
68256825
}
68266826
const APInt &Val = cast<ConstantSDNode>(Op)->getAPIntValue();
6827-
ScalarOps.push_back(SignExtendInReg(std::move(Val), OpVT));
6827+
ScalarOps.push_back(SignExtendInReg(Val, OpVT));
68286828
}
68296829
return getBuildVector(VT, DL, ScalarOps);
68306830
}

0 commit comments

Comments
 (0)