[llvm-commits] CVS: llvm/lib/Analysis/LoopPass.cpp

Devang Patel dpatel at apple.com
Tue Mar 6 11:51:06 PST 2007



Changes in directory llvm/lib/Analysis:

LoopPass.cpp updated: 1.15 -> 1.16
---
Log message:

Insert loop into LQ before visiting children.


---
Diffs of the changes:  (+1 -1)

 LoopPass.cpp |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


Index: llvm/lib/Analysis/LoopPass.cpp
diff -u llvm/lib/Analysis/LoopPass.cpp:1.15 llvm/lib/Analysis/LoopPass.cpp:1.16
--- llvm/lib/Analysis/LoopPass.cpp:1.15	Tue Mar  6 13:11:25 2007
+++ llvm/lib/Analysis/LoopPass.cpp	Tue Mar  6 13:50:49 2007
@@ -138,9 +138,9 @@
 
 // Recurse through all subloops and all loops  into LQ.
 static void addLoopIntoQueue(Loop *L, std::deque<Loop *> &LQ) {
+  LQ.push_back(L);
   for (Loop::iterator I = L->begin(), E = L->end(); I != E; ++I)
     addLoopIntoQueue(*I, LQ);
-  LQ.push_back(L);
 }
 
 /// Pass Manager itself does not invalidate any analysis info.






More information about the llvm-commits mailing list