mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
[SchedModel] Use std::move in a couple places to reduce copying
llvm-svn: 328441
This commit is contained in:
parent
ac1997833d
commit
7d4e499d01
@ -1370,8 +1370,9 @@ static void inferFromTransitions(ArrayRef<PredTransition> LastTransitions,
|
||||
return P.Predicate;
|
||||
});
|
||||
Preds.erase(std::unique(Preds.begin(), Preds.end()), Preds.end());
|
||||
SCTrans.PredTerm = Preds;
|
||||
SchedModels.getSchedClass(FromClassIdx).Transitions.push_back(SCTrans);
|
||||
SCTrans.PredTerm = std::move(Preds);
|
||||
SchedModels.getSchedClass(FromClassIdx)
|
||||
.Transitions.push_back(std::move(SCTrans));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user