Avoid nested loops at the moment.
authorDevang Patel <dpatel@apple.com>
Tue, 14 Aug 2007 23:53:57 +0000 (23:53 +0000)
committerDevang Patel <dpatel@apple.com>
Tue, 14 Aug 2007 23:53:57 +0000 (23:53 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41090 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/LoopIndexSplit.cpp

index 1398692afdeb354af2d4bc6ea4043ea149a59bb2..dfe33ffe16cc2a77a4f67d31bb602ff84f480a78 100644 (file)
@@ -154,6 +154,10 @@ bool LoopIndexSplit::runOnLoop(Loop *IncomingLoop, LPPassManager &LPM_Ref) {
   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>();