[PATCH] D42260: [JumpThreading] Don't select an edge that we know we can't thread
Haicheng Wu via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 1 11:54:37 PST 2018
haicheng added inline comments.
================
Comment at: lib/Transforms/Scalar/JumpThreading.cpp:1670
+ [&](const std::pair<BasicBlock *, BasicBlock *> &PredToDest) {
+ return LoopHeaders.count(PredToDest.second) != 0;
+ });
----------------
What about other cases that ThreadEdge() does not support, e.g. SuccBB == BB?
Repository:
rL LLVM
https://reviews.llvm.org/D42260
More information about the llvm-commits
mailing list