Skip to main content

callee_is_linear

Function callee_is_linear 

Source
pub fn callee_is_linear(
    tcx: TyCtxt<'_>,
    def_id: DefId,
    max_blocks: usize,
) -> bool
Expand description

Return true when def_id’s MIR body is “linear” enough for lightweight inlining: no SwitchInt terminators, at most one return, and at most max_blocks basic blocks.