[Local] Fix a bug in the domtree update logic for MergeBasicBlockIntoOnlyPred.
authorBalaram Makam <bmakam@codeaurora.org>
Wed, 25 Oct 2017 14:55:48 +0000 (14:55 +0000)
committerBalaram Makam <bmakam@codeaurora.org>
Wed, 25 Oct 2017 14:55:48 +0000 (14:55 +0000)
commit925ddf1a93d25fb11452d8e08042a2a9f5337e78
treee01592b1332df53a7326020f63ac8cee1c41b798
parent3e94e441d6a66784a41fe3583e8a427a47436f58
[Local] Fix a bug in the domtree update logic for MergeBasicBlockIntoOnlyPred.

Summary: For some irreducible CFG the domtree nodes might be dead, do not update domtree for dead nodes.

Reviewers: kuhar, dberlin, hfinkel

Reviewed By: kuhar

Subscribers: llvm-commits, mcrosier

Differential Revision: https://reviews.llvm.org/D38960

llvm-svn: 316582
llvm/lib/Transforms/Utils/Local.cpp
llvm/unittests/Transforms/Utils/Local.cpp