[llvm] r272221 - [LoopUnroll] Check that DT is available before trying to verify it.
Michael Zolotukhin via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 8 15:50:00 PDT 2016
Author: mzolotukhin
Date: Wed Jun 8 17:49:59 2016
New Revision: 272221
URL: http://llvm.org/viewvc/llvm-project?rev=272221&view=rev
Log:
[LoopUnroll] Check that DT is available before trying to verify it.
Modified:
llvm/trunk/lib/Transforms/Utils/LoopUnroll.cpp
Modified: llvm/trunk/lib/Transforms/Utils/LoopUnroll.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Utils/LoopUnroll.cpp?rev=272221&r1=272220&r2=272221&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Utils/LoopUnroll.cpp (original)
+++ llvm/trunk/lib/Transforms/Utils/LoopUnroll.cpp Wed Jun 8 17:49:59 2016
@@ -602,7 +602,7 @@ bool llvm::UnrollLoop(Loop *L, unsigned
// 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.
More information about the llvm-commits
mailing list