diff options
author | Dan Gohman <gohman@apple.com> | 2009-11-05 21:11:53 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-11-05 21:11:53 +0000 |
commit | aef6c7a849c4e8bdd07c017aef2dcfb8c019e287 (patch) | |
tree | 940b395910c450d7c9e00a014e1592e4982bdca8 /lib/Transforms/IPO/LoopExtractor.cpp | |
parent | 6c41ba177e160a4c26c6c9c7c49d27cbecf1a94b (diff) | |
download | external_llvm-aef6c7a849c4e8bdd07c017aef2dcfb8c019e287.zip external_llvm-aef6c7a849c4e8bdd07c017aef2dcfb8c019e287.tar.gz external_llvm-aef6c7a849c4e8bdd07c017aef2dcfb8c019e287.tar.bz2 |
Update various Loop optimization passes to cope with the possibility that
LoopSimplify form may not be available.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86175 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/IPO/LoopExtractor.cpp')
-rw-r--r-- | lib/Transforms/IPO/LoopExtractor.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Transforms/IPO/LoopExtractor.cpp b/lib/Transforms/IPO/LoopExtractor.cpp index fd69aeb..cb81330 100644 --- a/lib/Transforms/IPO/LoopExtractor.cpp +++ b/lib/Transforms/IPO/LoopExtractor.cpp @@ -75,6 +75,10 @@ bool LoopExtractor::runOnLoop(Loop *L, LPPassManager &LPM) { if (L->getParentLoop()) return false; + // If LoopSimplify form is not available, stay out of trouble. + if (!L->isLoopSimplifyForm()) + return false; + DominatorTree &DT = getAnalysis<DominatorTree>(); bool Changed = false; |