diff options
author | Clement Courbet <courbet@google.com> | 2019-05-16 12:48:56 +0000 |
---|---|---|
committer | Clement Courbet <courbet@google.com> | 2019-05-16 12:48:56 +0000 |
commit | 3a0e6e1c6c9622d692e94d627e17925b45602547 (patch) | |
tree | 490ac2aec081f616d5de15a2e088c2af4aadd3be /llvm/lib/ProfileData/Coverage/CoverageMappingReader.cpp | |
parent | ab155469835a90014ad42103d7d05701029a2a9b (diff) | |
download | llvm-3a0e6e1c6c9622d692e94d627e17925b45602547.zip llvm-3a0e6e1c6c9622d692e94d627e17925b45602547.tar.gz llvm-3a0e6e1c6c9622d692e94d627e17925b45602547.tar.bz2 |
[DominatorTree] Print roots unconditionally in `print()`.
Summary:
This came up in a debugging session. I was failing to update the root of
the tree, and got during verification:
```
DominatorTree is different than a freshly computed one!
Current:
=============================--------------------------------
Inorder Dominator Tree: DFSNumbers invalid: 0 slow queries.
[1] %"entry+land.rhs.i" {4294967295,4294967295} [0]
[2] %opeq1.exit {4294967295,4294967295} [1]
Freshly computed tree:
=============================--------------------------------
Inorder Dominator Tree: DFSNumbers invalid: 0 slow queries.
[1] %"entry+land.rhs.i" {4294967295,4294967295} [0]
[2] %opeq1.exit {4294967295,4294967295} [1]
```
We now print:
```
DominatorTree is different than a freshly computed one!
Current:
=============================--------------------------------
Inorder Dominator Tree: DFSNumbers invalid: 0 slow queries.
[1] %"entry+land.rhs.i" {4294967295,4294967295} [0]
[2] %opeq1.exit {4294967295,4294967295} [1]
Roots: <badref>
Freshly computed tree:
=============================--------------------------------
Inorder Dominator Tree: DFSNumbers invalid: 0 slow queries.
[1] %"entry+land.rhs.i" {4294967295,4294967295} [0]
[2] %opeq1.exit {4294967295,4294967295} [1]
Roots: %"entry+land.rhs.i"
```
Reviewers: kuhar, asbirlea
Subscribers: llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D61999
llvm-svn: 360886
Diffstat (limited to 'llvm/lib/ProfileData/Coverage/CoverageMappingReader.cpp')
0 files changed, 0 insertions, 0 deletions