pub struct ApplyDeadCodeEliminationOperation<'c> { /* private fields */ }
Expand description
An apply_dce
operation. Eliminate dead operations in the body of the target op.
This transform applies dead code elimination (DCE) to the body of the targeted op.
Note: “transform.apply_patterns” with an empty region can also be used to remove dead ops. However, that op applies additional simplifications such as op folding and region simplification.
This transform reads the target handle and modifies the payload. Note that this transform may silently remove payload ops from handles.
Implementations§
source§impl<'c> ApplyDeadCodeEliminationOperation<'c>
impl<'c> ApplyDeadCodeEliminationOperation<'c>
Trait Implementations§
source§impl<'c> From<ApplyDeadCodeEliminationOperation<'c>> for Operation<'c>
impl<'c> From<ApplyDeadCodeEliminationOperation<'c>> for Operation<'c>
source§fn from(operation: ApplyDeadCodeEliminationOperation<'c>) -> Self
fn from(operation: ApplyDeadCodeEliminationOperation<'c>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'c> RefUnwindSafe for ApplyDeadCodeEliminationOperation<'c>
impl<'c> !Send for ApplyDeadCodeEliminationOperation<'c>
impl<'c> !Sync for ApplyDeadCodeEliminationOperation<'c>
impl<'c> Unpin for ApplyDeadCodeEliminationOperation<'c>
impl<'c> UnwindSafe for ApplyDeadCodeEliminationOperation<'c>
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