If P branches to Q conditional on C and Q branches to R conditional on
C' and C => C' then the branch conditional on C' can be folded to an
unconditional branch.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
lib/Transforms/Scalar/JumpThreading.cpp | ||
---|---|---|
909 ↗ | (On Diff #38087) | Don't you need to update CurrentPred in this loop in order to continue the search? |
lib/Transforms/Scalar/JumpThreading.cpp | ||
---|---|---|
909 ↗ | (On Diff #38620) | Yes, I do need to update CurrentPred! Fixed. |
Comment Actions
Also, while I'm generally not in favor of these "small search radius" optimizations, in this case, doing anything else would be a larger change because JumpThreading currently has no DominatorTree dependence. Thus, I'm okay with this as-is.