]> git.lizzy.rs Git - rust.git/commit - src/tools/miri
Rollup merge of #74169 - ecstatic-morse:dataflow-unreachable, r=pnkfelix
authorManish Goregaokar <manishsmail@gmail.com>
Fri, 17 Jul 2020 21:09:08 +0000 (14:09 -0700)
committerGitHub <noreply@github.com>
Fri, 17 Jul 2020 21:09:08 +0000 (14:09 -0700)
commit10b7eecbdd7cee00349dfc30b9e2dcf8b4f688af
treec1c12aa7bea1cedeaffb73e98efc407d45b1ebdc
parent9c84c6b836bce0730cd1c34ef7e4832b755a713d
parent698e870f75710152309158342fd18461531cc0fb
Rollup merge of #74169 - ecstatic-morse:dataflow-unreachable, r=pnkfelix

Stop processing unreachable blocks when solving dataflow

...instead we `debug_assert` that the user is not checking the dataflow state for an unreachable block. This resolves a FIXME in the dataflow engine. The old behavior was an artifact of the previous dataflow framework. Things should run a tiny bit faster now, but I suspect not enough to show up in benchmarks. AFAIK, only the generator transform runs dataflow on MIR with unreachable basic blocks.

This PR also adds some utility methods to `mir::traversal`.

r? @pnkfelix