From: Devang Patel Date: Tue, 14 Aug 2007 23:53:57 +0000 (+0000) Subject: Avoid nested loops at the moment. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=4e8061cbdaabe092ba7f1b4e7e8155dafbac4a90;p=oota-llvm.git Avoid nested loops at the moment. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41090 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/Scalar/LoopIndexSplit.cpp b/lib/Transforms/Scalar/LoopIndexSplit.cpp index 1398692afde..dfe33ffe16c 100644 --- a/lib/Transforms/Scalar/LoopIndexSplit.cpp +++ b/lib/Transforms/Scalar/LoopIndexSplit.cpp @@ -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(); DT = &getAnalysis(); LI = &getAnalysis();