diff options
author | Serge Pavlov <sepavloff@gmail.com> | 2017-03-02 12:00:10 +0000 |
---|---|---|
committer | Serge Pavlov <sepavloff@gmail.com> | 2017-03-02 12:00:10 +0000 |
commit | e2bf69715ff830419f39e727fcccb5f0d9f0f425 (patch) | |
tree | 156b3666679895109b1dbe7ffcf15c7023d9cd4f /llvm/test/CodeGen | |
parent | ebe25fb845d6f4f2058a743e2f6721b1d6a78f87 (diff) | |
download | bcm5719-llvm-e2bf69715ff830419f39e727fcccb5f0d9f0f425.tar.gz bcm5719-llvm-e2bf69715ff830419f39e727fcccb5f0d9f0f425.zip |
Do not verify MachimeDominatorTree if it is not calculated
If dominator tree is not calculated or is invalidated, set corresponding
pointer in the pass state to nullptr. Such pointer value will indicate
that operations with dominator tree are not allowed. In particular, it
allows to skip verification for such pass state. The dominator tree is
not calculated if the machine dominator pass was skipped, it occures in
the case of entities with linkage available_externally.
The change fixes some test fails observed when expensive checks
are enabled.
Differential Revision: https://reviews.llvm.org/D29280
llvm-svn: 296742
Diffstat (limited to 'llvm/test/CodeGen')
-rw-r--r-- | llvm/test/CodeGen/Generic/externally_available.ll | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/test/CodeGen/Generic/externally_available.ll b/llvm/test/CodeGen/Generic/externally_available.ll index 7976cc97188..2376bc73992 100644 --- a/llvm/test/CodeGen/Generic/externally_available.ll +++ b/llvm/test/CodeGen/Generic/externally_available.ll @@ -1,4 +1,4 @@ -; RUN: llc < %s | not grep test_ +; RUN: llc -verify-machine-dom-info < %s | not grep test_ ; test_function should not be emitted to the .s file. define available_externally i32 @test_function() { |