[PATCH] D29572: [JumpThread] Do not break loops by splitting blocks

Haicheng Wu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 6 14:29:07 PST 2017


haicheng added inline comments.


================
Comment at: include/llvm/Transforms/Scalar/JumpThreading.h:67
 #ifdef NDEBUG
-  SmallPtrSet<const BasicBlock *, 16> LoopHeaders;
+  DenseMap<const BasicBlock *, SmallPtrSet<const BasicBlock *, 16>> LoopHeaders;
 #else
----------------
Please add a comment to explain how the map works.


https://reviews.llvm.org/D29572





More information about the llvm-commits mailing list