forked from OSchip/llvm-project
parent
d3ccdfd04d
commit
b1fcb9ae15
|
@ -26,7 +26,8 @@ namespace llvm {
|
|||
class LoopCompare {
|
||||
public:
|
||||
bool operator()( Loop *L1, Loop *L2) const {
|
||||
return L1->getLoopDepth() > L2->getLoopDepth();
|
||||
// Loops with highest depth has the highest priority.
|
||||
return L1->getLoopDepth() < L2->getLoopDepth();
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue