git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@314418
91177308-0d34-0410-b5e6-
96231b3b80d8
// for unrolling is only needed to get optimization remarks emitted in
// a forward order.
Loop &L = *Worklist.pop_back_val();
+#ifndef NDEBUG
+ Loop *ParentL = L.getParentLoop();
+#endif
// The API here is quite complex to call, but there are only two interesting
// states we support: partial and full (or "simple") unrolling. However, to
// The parent must not be damaged by unrolling!
#ifndef NDEBUG
- Loop *ParentL = L.getParentLoop();
if (Result != LoopUnrollResult::Unmodified && ParentL)
ParentL->verifyLoop();
#endif