Author: dpatel
Date: Tue Aug 14 18:53:57 2007
New Revision: 41090

URL: http://llvm.org/viewvc/llvm-project?rev=41090&view=rev
Log:
Avoid nested loops at the moment.

Modified:
    llvm/trunk/lib/Transforms/Scalar/LoopIndexSplit.cpp

Modified: llvm/trunk/lib/Transforms/Scalar/LoopIndexSplit.cpp
URL: 
http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/LoopIndexSplit.cpp?rev=41090&r1=41089&r2=41090&view=diff

==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/LoopIndexSplit.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/LoopIndexSplit.cpp Tue Aug 14 18:53:57 2007
@@ -154,6 +154,10 @@
   L = IncomingLoop;
   LPM = &LPM_Ref;
 
+  // FIXME - Nested loops makes dominator info updates tricky. 
+  if (!L->getSubLoops().empty())
+    return false;
+
   SE = &getAnalysis<ScalarEvolution>();
   DT = &getAnalysis<DominatorTree>();
   LI = &getAnalysis<LoopInfo>();


_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to