projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3b1d306
)
Avoid nested loops at the moment.
author
Devang Patel
<dpatel@apple.com>
Tue, 14 Aug 2007 23:53:57 +0000
(23:53 +0000)
committer
Devang 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
patch
|
blob
|
history
diff --git
a/lib/Transforms/Scalar/LoopIndexSplit.cpp
b/lib/Transforms/Scalar/LoopIndexSplit.cpp
index 1398692afdeb354af2d4bc6ea4043ea149a59bb2..dfe33ffe16cc2a77a4f67d31bb602ff84f480a78 100644
(file)
--- 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<ScalarEvolution>();
DT = &getAnalysis<DominatorTree>();
LI = &getAnalysis<LoopInfo>();