Skip to main content

Module unreachable_prop

Module unreachable_prop 

Source
Expand description

A pass that propagates the unreachable terminator of a block to its predecessors when all of their successors are unreachable. This is achieved through a post-order traversal of the blocks.

Re-exportsยง

use rustc_abi::Size; ๐Ÿ”’
use rustc_data_structures::fx::FxHashSet; ๐Ÿ”’
use rustc_middle::mir::interpret::Scalar; ๐Ÿ”’
use rustc_middle::ty; ๐Ÿ”’
use rustc_middle::ty::TyCtxt; ๐Ÿ”’
use rustc_span::bug; ๐Ÿ”’
use crate::PassPolicy; ๐Ÿ”’
use crate::patch::MirPatch; ๐Ÿ”’
use rustc_middle::mir::*; ๐Ÿ”’

Structsยง

UnreachablePropagation ๐Ÿ”’

Functionsยง

remove_successors_from_switch ๐Ÿ”’
Return whether the current terminator is fully unreachable.