OSDN Git Service

Do not verify dominator tree if it has no roots
authorSerge Pavlov <sepavloff@gmail.com>
Wed, 25 Jan 2017 07:58:10 +0000 (07:58 +0000)
committerSerge Pavlov <sepavloff@gmail.com>
Wed, 25 Jan 2017 07:58:10 +0000 (07:58 +0000)
commit841259051ac711eda2c002ea5414ffcb3eaf8cec
treebfe8f5974986689497c665bee9facbebc3c2d98e
parent420c0701f8b0792803b96e1be894e27476abc3aa
Do not verify dominator tree if it has no roots

If dominator tree has no roots, the pass that calculates it is
likely to be skipped. It occures, for instance, in the case of
entities with linkage available_externally. Do not run tree
verification in such case.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@293033 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/MachineDominators.cpp
lib/IR/Dominators.cpp
test/CodeGen/Generic/externally_available.ll