[−][src]Struct rustc_mir::transform::simplify_comparison_integral::OptimizationInfo
Fields
bb_idx: BasicBlockBasic block to apply the optimization
bin_op_stmt_idx: usizeStatement index of Eq/Ne assignment that can be removed. None if the assignment can not be removed - i.e the statement is used later on
can_remove_bin_op_stmt: boolCan remove Eq/Ne assignment
to_switch_on: Place<'tcx>Place that needs to be switched on. This place is of type integral
branch_value_scalar: ScalarConstant to use in switch target value
branch_value_ty: Ty<'tcx>Type of the constant value
op: BinOpEither Eq or Ne
targets: SwitchTargetsCurrent targets used in the switch
Trait Implementations
impl<'tcx> Debug for OptimizationInfo<'tcx>[src]
Auto Trait Implementations
impl<'tcx> !RefUnwindSafe for OptimizationInfo<'tcx>
impl<'tcx> !Send for OptimizationInfo<'tcx>
impl<'tcx> !Sync for OptimizationInfo<'tcx>
impl<'tcx> Unpin for OptimizationInfo<'tcx>
impl<'tcx> !UnwindSafe for OptimizationInfo<'tcx>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.