From: Devang Patel Date: Fri, 23 Feb 2007 18:05:55 +0000 (+0000) Subject: Fix thinko. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=5b9e8d6aab594cce24cc3641f8127fcdb3985c0c;p=oota-llvm.git Fix thinko. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34528 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Analysis/LoopPass.cpp b/lib/Analysis/LoopPass.cpp index 26e50615640..4d2e2906082 100644 --- a/lib/Analysis/LoopPass.cpp +++ b/lib/Analysis/LoopPass.cpp @@ -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(); } };