eliminate in rustc_mir_transform::dead_store_elimination - Rust
Description: Performs the optimization on the body

Skip to main content

## eliminate

# Function eliminate

Source

    fn eliminate<'tcx>(tcx: TyCtxt<'tcx>, body: &mut Body<'tcx>) -> bool

Expand description

Performs the optimization on the body

The `borrowed` set must be a `DenseBitSet` of all the locals that are ever borrowed in this body. It can be generated via the [`borrowed_locals`] function. Returns true if any instruction is eliminated.