Re-exportsยง
use rustc_abi::Integer;๐use rustc_const_eval::const_eval::mk_eval_cx_for_const_val;๐use rustc_index::bit_set::DenseBitSet;๐use rustc_middle::ty::layout::IntegerExt;๐use rustc_middle::ty::layout::TyAndLayout;๐use rustc_middle::ty::util::Discr;๐use rustc_middle::ty;๐use rustc_middle::ty::ScalarInt;๐use rustc_middle::ty::Ty;๐use rustc_middle::ty::TyCtxt;๐use super::simplify::simplify_cfg;๐use crate::PassPolicy;๐use crate::patch::MirPatch;๐use crate::unreachable_prop::remove_successors_from_switch;๐use rustc_middle::mir::*;๐
Structsยง
- Match
Branch ๐Simplification - Unifies all targets into one basic block if each statement can have the same statement.
- Simplify
Match ๐
Functionsยง
- can_
cast ๐ - Check if the cast constant using
IntToIntis equal to the target constant. - candidate_
assign ๐ - candidate_
const ๐ - candidate_
match ๐ - Returns the first case target if all targets have an equal number of statements and identical destination.
- identical_
stmts ๐ - simplify_
match ๐ - split_
first_ ๐case