pub struct CfgHoistCandidate {
pub instr_id: usize,
pub loop_id: usize,
pub reason: String,
}Expand description
A candidate instruction identified as safe to hoist out of a loop.
(CFG-based variant; see also the LCNF-based HoistCandidate.)
Fields§
§instr_id: usizeId of the instruction to hoist.
loop_id: usizeId of the loop (index into the LoopInfo vec returned by identify_loops).
reason: StringHuman-readable reason this instruction was selected.
Trait Implementations§
Source§impl Clone for CfgHoistCandidate
impl Clone for CfgHoistCandidate
Source§fn clone(&self) -> CfgHoistCandidate
fn clone(&self) -> CfgHoistCandidate
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CfgHoistCandidate
impl RefUnwindSafe for CfgHoistCandidate
impl Send for CfgHoistCandidate
impl Sync for CfgHoistCandidate
impl Unpin for CfgHoistCandidate
impl UnsafeUnpin for CfgHoistCandidate
impl UnwindSafe for CfgHoistCandidate
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