summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorMichael Zolotukhin <mzolotukhin@apple.com>2016-06-08 22:49:59 +0000
committerMichael Zolotukhin <mzolotukhin@apple.com>2016-06-08 22:49:59 +0000
commitaa547616d2bd5f835c2ee458b544e5b67a1480d7 (patch)
tree391cda6270ea35e94112ec11ae15fc083949dc83 /llvm/lib/Transforms
parente94aa7a3e1cc500623200994cd9b1872552ecb5b (diff)
downloadbcm5719-llvm-aa547616d2bd5f835c2ee458b544e5b67a1480d7.tar.gz
bcm5719-llvm-aa547616d2bd5f835c2ee458b544e5b67a1480d7.zip
[LoopUnroll] Check that DT is available before trying to verify it.
llvm-svn: 272221
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/Utils/LoopUnroll.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/LoopUnroll.cpp b/llvm/lib/Transforms/Utils/LoopUnroll.cpp
index baeaab17c11..f7e5c0c49f8 100644
--- a/llvm/lib/Transforms/Utils/LoopUnroll.cpp
+++ b/llvm/lib/Transforms/Utils/LoopUnroll.cpp
@@ -602,7 +602,7 @@ bool llvm::UnrollLoop(Loop *L, unsigned Count, unsigned TripCount, bool Force,
// updating domtree after partial loop unrolling should also be easy.
if (DT && !CompletelyUnroll)
DT->recalculate(*L->getHeader()->getParent());
- else
+ else if (DT)
DEBUG(DT->verifyDomTree());
// Simplify any new induction variables in the partially unrolled loop.
OpenPOWER on IntegriCloud