Fix thinko.

llvm-svn: 34528
diff --git a/llvm/lib/Analysis/LoopPass.cpp b/llvm/lib/Analysis/LoopPass.cpp
index 26e5061..4d2e290 100644
--- a/llvm/lib/Analysis/LoopPass.cpp
+++ b/llvm/lib/Analysis/LoopPass.cpp
@@ -26,7 +26,8 @@
 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();
   }
 };