Permalink
Browse files

llvm: Reverse order for clusterizing, as it seems to work better.

  • Loading branch information...
1 parent fd58ead commit bd319a9c6bf7d19492e519a71e211a879c058cd8 @jeuneS2 committed Oct 3, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 tools/llvm/lib/Target/Lemberg/LembergClusterizer.cpp
@@ -96,9 +96,9 @@ namespace {
&& classes[rhs] == Lemberg::AImmRegisterClass) {
return true;
}
- // prefer registers with fewer neighbors
+ // prefer registers with more neighbors
if (hood[lhs]->size() != hood[rhs]->size()) {
- return hood[lhs]->size() > hood[rhs]->size();
+ return hood[lhs]->size() < hood[rhs]->size();
}
// use register number as tie-breaker
return lhs > rhs;

0 comments on commit bd319a9

Please sign in to comment.