OSDN Git Service

[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)
commit18476bdafdb0b1e5ac11d922c317a1511212a53e
tree13ad0d48948d6372862963564e67f6d77d60fe38
parentb0fa4d87c445f01bf29f85fc6e7c881ed2dd5e1c
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@316582 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Utils/Local.cpp
unittests/Transforms/Utils/Local.cpp