commit | 79276b3b9f8b3933f6269ffed5c181d1b38aa97f | [log] [tgz] |
---|---|---|
author | Devang Patel <dpatel@apple.com> | Tue Aug 14 23:53:57 2007 +0000 |
committer | Devang Patel <dpatel@apple.com> | Tue Aug 14 23:53:57 2007 +0000 |
tree | 85fa438f11c3380fc611821c5da8ef1262ce7bce | |
parent | a960b3b1559b5428cb4396295cf8df89b97ce140 [diff] [blame] |
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 1398692..dfe33ff 100644 --- a/lib/Transforms/Scalar/LoopIndexSplit.cpp +++ b/lib/Transforms/Scalar/LoopIndexSplit.cpp
@@ -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>();