[PATCH] D29016: [LoopUnswitch] Do not freeze condition if hoisted branch is guaranteed to be reachable
Juneyoung Lee via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 2 08:58:55 PST 2017
aqjune added inline comments.
================
Comment at: lib/Transforms/Scalar/LoopUnswitch.cpp:685
if (BranchInst *BI = dyn_cast<BranchInst>(TI)) {
// Some branches may be rendered unreachable because of previous
// unswitching.
----------------
@efriedma I lifted out the loop to line 610 so it calculates reachable terminators in advance. Also I added code snippet which deals with constant branch condition.
https://reviews.llvm.org/D29016
More information about the llvm-commits
mailing list