]> git.lizzy.rs Git - rust.git/commit - src/tools/miri
Rollup merge of #69158 - ecstatic-morse:graphviz-diff, r=matthewjasper
authorYuki Okushi <huyuumi.dev@gmail.com>
Mon, 17 Feb 2020 04:46:54 +0000 (13:46 +0900)
committerGitHub <noreply@github.com>
Mon, 17 Feb 2020 04:46:54 +0000 (13:46 +0900)
commit50ddda694900e6e073c5d5c5d1bb4298a57d7749
tree04c77140dd17b12ceb8d6148fb586ef3032dfd84
parentc3fed9fabd182a9479ada08d21313a9ed942436c
parent5c473a059e26614b65414cfb8cf75c283cda5a87
Rollup merge of #69158 - ecstatic-morse:graphviz-diff, r=matthewjasper

Don't print block exit state in dataflow graphviz if unchanged

A small quality-of-life improvement I was using while working on #68528. It's pretty common to have a lot of zero-statement basic blocks, especially before a `SimplifyCfg` pass is run. When the dataflow state was dense, these blocks could take up a lot of vertical space since the full flow state was printed on both entry and exit. After this PR, we only print a block's exit state if it differs from that block's entry state. Take a look at the two basic blocks on the left.

Before:

![image](https://user-images.githubusercontent.com/29463364/74505395-e2d1dd00-4eab-11ea-8006-ec8f0dc9d1b6.png)

After:
![image](https://user-images.githubusercontent.com/29463364/74505277-98506080-4eab-11ea-8d95-5190bc378331.png)