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();