[PATCH] D23437: [LoopInfo] Add a routine for verification by recomputation.

Mehdi AMINI via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 31 13:06:36 PDT 2016


mehdi_amini added inline comments.

================
Comment at: llvm/trunk/include/llvm/Analysis/LoopInfoImpl.h:552
@@ -532,1 +551,3 @@
   }
+
+  // Recompute LoopInfo to verify loops structure.
----------------
I'd expect it to be possible to get the Function at any time using `BBMap.begin().first->getParent()` here (assuming an early exit if empty earlier).



Repository:
  rL LLVM

https://reviews.llvm.org/D23437





More information about the llvm-commits mailing list