aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/DynamicLibrary.cpp
diff options
context:
space:
mode:
authorJakub Kuderski <kubakuderski@gmail.com>2017-07-12 18:42:16 +0000
committerJakub Kuderski <kubakuderski@gmail.com>2017-07-12 18:42:16 +0000
commitb323f4f173710c60bcc76628d8155e476023c5b5 (patch)
tree56e0c010a71bfe43ec9796ba32bd90ff47f30fe0 /llvm/lib/Support/DynamicLibrary.cpp
parent5ae1bfe813126dc68fe1b9f572d0bd59d481feca (diff)
downloadllvm-b323f4f173710c60bcc76628d8155e476023c5b5.zip
llvm-b323f4f173710c60bcc76628d8155e476023c5b5.tar.gz
llvm-b323f4f173710c60bcc76628d8155e476023c5b5.tar.bz2
[LoopRotate] Fix DomTree update logic for unreachable nodes. Fix PR33701.
Summary: LoopRotate manually updates the DoomTree by iterating over all predecessors of a basic block and computing the Nearest Common Dominator. When a predecessor happens to be unreachable, `DT.findNearestCommonDominator` returns nullptr. This patch teaches LoopRotate to handle this case and fixes [[ https://bugs.llvm.org/show_bug.cgi?id=33701 | PR33701 ]]. In the future, LoopRotate should be taught to use the new incremental API for updating the DomTree. Reviewers: dberlin, davide, uabelho, grosser Subscribers: efriedma, mzolotukhin Differential Revision: https://reviews.llvm.org/D35074 llvm-svn: 307828
Diffstat (limited to 'llvm/lib/Support/DynamicLibrary.cpp')
0 files changed, 0 insertions, 0 deletions