pub struct Mem2RegConfig {
pub max_phi_nodes: usize,
pub conservative: bool,
}Expand description
Configuration for the Mem2Reg promotion pass.
Fields§
§max_phi_nodes: usizeMaximum number of phi nodes that may be inserted per function. Set to 0 to disable phi insertion entirely (only simple inlining).
conservative: boolIf true, only promote bindings that are provably single-use and
never cross a case-branch boundary. Safer but less aggressive.
Trait Implementations§
Source§impl Clone for Mem2RegConfig
impl Clone for Mem2RegConfig
Source§fn clone(&self) -> Mem2RegConfig
fn clone(&self) -> Mem2RegConfig
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 Mem2RegConfig
impl Debug for Mem2RegConfig
Source§impl Default for Mem2RegConfig
impl Default for Mem2RegConfig
Auto Trait Implementations§
impl Freeze for Mem2RegConfig
impl RefUnwindSafe for Mem2RegConfig
impl Send for Mem2RegConfig
impl Sync for Mem2RegConfig
impl Unpin for Mem2RegConfig
impl UnsafeUnpin for Mem2RegConfig
impl UnwindSafe for Mem2RegConfig
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