pub struct LICMConfig {
pub min_savings_threshold: u32,
pub hoist_function_calls: bool,
}Expand description
Configuration knobs for the LICM pass.
Fields§
§min_savings_threshold: u32Minimum estimated savings to justify hoisting an expression. Defaults to 0 (hoist everything that is safe).
hoist_function_calls: boolWhether to hoist calls to named functions.
Defaults to false because side-effecting calls must stay in place.
Trait Implementations§
Source§impl Clone for LICMConfig
impl Clone for LICMConfig
Source§fn clone(&self) -> LICMConfig
fn clone(&self) -> LICMConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LICMConfig
impl Debug for LICMConfig
Source§impl Default for LICMConfig
impl Default for LICMConfig
Source§fn default() -> LICMConfig
fn default() -> LICMConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LICMConfig
impl RefUnwindSafe for LICMConfig
impl Send for LICMConfig
impl Sync for LICMConfig
impl Unpin for LICMConfig
impl UnsafeUnpin for LICMConfig
impl UnwindSafe for LICMConfig
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