@@ -1046,7 +1046,7 @@ static InstructionsState getSameOpcode(ArrayRef<Value *> VL,
1046
1046
std::back_inserter(NewInterchangeableOpcode));
1047
1047
if (NewInterchangeableOpcode.empty())
1048
1048
return false;
1049
- LHS = std::move (NewInterchangeableOpcode);
1049
+ LHS.swap (NewInterchangeableOpcode);
1050
1050
return true;
1051
1051
};
1052
1052
for (int Cnt = 0, E = VL.size(); Cnt < E; Cnt++) {
@@ -1060,22 +1060,20 @@ static InstructionsState getSameOpcode(ArrayRef<Value *> VL,
1060
1060
continue;
1061
1061
if (AlternateInterchangeableOpcode.empty()) {
1062
1062
InterchangeableOpcode.erase(
1063
- std::remove_if(InterchangeableOpcode.begin(),
1064
- InterchangeableOpcode.end(),
1065
- [](const InterchangeableInstruction &I) {
1066
- return !isValidForAlternation(I.Opcode);
1067
- }),
1063
+ remove_if(InterchangeableOpcode,
1064
+ [](const InterchangeableInstruction &I) {
1065
+ return !isValidForAlternation(I.Opcode);
1066
+ }),
1068
1067
InterchangeableOpcode.end());
1069
1068
ThisInterchangeableOpcode.erase(
1070
- std::remove_if(ThisInterchangeableOpcode.begin(),
1071
- ThisInterchangeableOpcode.end(),
1072
- [](const InterchangeableInstruction &I) {
1073
- return !isValidForAlternation(I.Opcode);
1074
- }),
1069
+ remove_if(ThisInterchangeableOpcode,
1070
+ [](const InterchangeableInstruction &I) {
1071
+ return !isValidForAlternation(I.Opcode);
1072
+ }),
1075
1073
ThisInterchangeableOpcode.end());
1076
1074
if (InterchangeableOpcode.empty() || ThisInterchangeableOpcode.empty())
1077
1075
return InstructionsState(VL[BaseIndex], nullptr, nullptr);
1078
- AlternateInterchangeableOpcode = std::move (ThisInterchangeableOpcode);
1076
+ AlternateInterchangeableOpcode.swap (ThisInterchangeableOpcode);
1079
1077
continue;
1080
1078
}
1081
1079
if (UpdateInterchangeableOpcode(AlternateInterchangeableOpcode,
0 commit comments