[llvm-commits] [llvm] r41090 - /llvm/trunk/lib/Transforms/Scalar/LoopIndexSplit.cpp
Devang Patel
dpatel at apple.com
Tue Aug 14 16:53:57 PDT 2007
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>();
More information about the llvm-commits
mailing list