[PATCH] D37816: Experimental late jump threading pass

Balaram Makam via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 14 08:08:46 PDT 2017


bmakam added inline comments.


================
Comment at: lib/Transforms/Scalar/JumpThreading.cpp:1824
   // See the comments above FindLoopHeaders for justifications and caveats.
-  if (LoopHeaders.count(BB) || LoopHeaders.count(SuccBB)) {
+  if (LoopHeaders.count(BB) || (!IsLate && LoopHeaders.count(SuccBB))) {
     DEBUG({
----------------
Should this be 
if (!IsLate && (LoopHeaders.count(BB) || LoopHeaders.count(SuccBB))) {


Repository:
  rL LLVM

https://reviews.llvm.org/D37816





More information about the llvm-commits mailing list