pub struct DceConfig {
pub eliminate_unused_lets: bool,
pub eliminate_unreachable_alts: bool,
pub propagate_constants: bool,
pub propagate_copies: bool,
pub fold_known_calls: bool,
pub max_iterations: usize,
}Expand description
Configuration knobs for the DCE pipeline.
Fields§
§eliminate_unused_lets: boolEliminate unused let-bindings.
eliminate_unreachable_alts: boolEliminate case alternatives that are statically unreachable.
propagate_constants: boolPropagate literal constants through let-bindings.
propagate_copies: boolPropagate copies (let x = y) by substituting y for x.
fold_known_calls: boolFold case expressions whose scrutinee is a known constructor.
max_iterations: usizeMaximum number of fixed-point iterations.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DceConfig
impl RefUnwindSafe for DceConfig
impl Send for DceConfig
impl Sync for DceConfig
impl Unpin for DceConfig
impl UnsafeUnpin for DceConfig
impl UnwindSafe for DceConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more