[PATCH] D25075: [JumpThreading] Allow threading over loop headers when creating single block loops
David Majnemer via llvm-commits
llvm-commits at lists.llvm.org
Sat Oct 1 18:36:02 PDT 2016
majnemer added inline comments.
> JumpThreading.cpp:1460
> + if (LoopHeaders.count(BB) &&
> + std::find(PredBBs.begin(), PredBBs.end(), SuccBB) == PredBBs.end()) {
> DEBUG(dbgs() << " Not threading across loop header BB '" << BB->getName()
You could use `is_contained(PredBBs, SuccBB)` as a shorthand.
Repository:
rL LLVM
https://reviews.llvm.org/D25075
More information about the llvm-commits
mailing list