pub struct GVNFunctionSummary {
pub return_vns: Vec<ValueNumber>,
pub is_pure_fn: bool,
pub param_equalities: Vec<(usize, usize)>,
}Expand description
Summary of a function’s value-numbering effects for interprocedural GVN.
Fields§
§return_vns: Vec<ValueNumber>Value numbers of the return expression(s).
is_pure_fn: boolWhether the function always returns the same value (pure).
param_equalities: Vec<(usize, usize)>Known equalities between parameters (param_idx, param_idx).
Implementations§
Trait Implementations§
Source§impl Clone for GVNFunctionSummary
impl Clone for GVNFunctionSummary
Source§fn clone(&self) -> GVNFunctionSummary
fn clone(&self) -> GVNFunctionSummary
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 GVNFunctionSummary
impl Debug for GVNFunctionSummary
Source§impl Default for GVNFunctionSummary
impl Default for GVNFunctionSummary
Source§fn default() -> GVNFunctionSummary
fn default() -> GVNFunctionSummary
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for GVNFunctionSummary
impl RefUnwindSafe for GVNFunctionSummary
impl Send for GVNFunctionSummary
impl Sync for GVNFunctionSummary
impl Unpin for GVNFunctionSummary
impl UnsafeUnpin for GVNFunctionSummary
impl UnwindSafe for GVNFunctionSummary
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