about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2020-07-17 14:09:08 -0700
committerGitHub <noreply@github.com>2020-07-17 14:09:08 -0700
commit10b7eecbdd7cee00349dfc30b9e2dcf8b4f688af (patch)
treec1c12aa7bea1cedeaffb73e98efc407d45b1ebdc /src/rustllvm/RustWrapper.cpp
parent9c84c6b836bce0730cd1c34ef7e4832b755a713d (diff)
parent698e870f75710152309158342fd18461531cc0fb (diff)
downloadrust-10b7eecbdd7cee00349dfc30b9e2dcf8b4f688af.tar.gz
rust-10b7eecbdd7cee00349dfc30b9e2dcf8b4f688af.zip
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
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions