[PATCH] D22779: Clone block with icmp+branch if it likely results in further jump threading

Haicheng Wu via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 19 07:43:40 PDT 2016


haicheng added inline comments.

================
Comment at: lib/Transforms/Scalar/JumpThreading.cpp:875
@@ -871,4 +874,3 @@
     if (PN->getParent() == BB && isa<BranchInst>(BB->getTerminator()))
-      return ProcessBranchOnPHI(PN);
-
+      return TryDuplicatePredsWithUncondBranch(BB);
 
----------------
Do you still need to change ProcessBranchOnPHI()?


https://reviews.llvm.org/D22779





More information about the llvm-commits mailing list