We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b8bc1b commit 9523062Copy full SHA for 9523062
bolt/lib/Passes/PettisAndHansen.cpp
@@ -143,11 +143,10 @@ std::vector<Cluster> pettisAndHansen(const CallGraph &Cg) {
143
// Find an arc with max weight and merge its nodes
144
145
while (!Carcs.empty()) {
146
- auto Maxpos =
147
- std::max_element(Carcs.begin(), Carcs.end(),
148
- [&](const ClusterArc &Carc1, const ClusterArc &Carc2) {
149
- return Carc1.Weight < Carc2.Weight;
150
- });
+ auto Maxpos = llvm::max_element(
+ Carcs, [&](const ClusterArc &Carc1, const ClusterArc &Carc2) {
+ return Carc1.Weight < Carc2.Weight;
+ });
151
152
ClusterArc Max = *Maxpos;
153
Carcs.erase(Maxpos);
0 commit comments