Skip to main content

classify_ops

Function classify_ops 

Source
pub fn classify_ops(
    ops: &[Op],
    loop_trip_count: Option<u64>,
    cfg: &DetectorConfig,
) -> DetectorVerdict
Expand description

Classify directly from an op slice + trip count, without requiring an owned BlockIR.

jit PERF fix (finding 11): the rewriter previously CLONED the whole detector_ops vector just to wrap it in a throwaway BlockIR for classify, then moved the original vector into its per-function slot. Classifying over a borrowed slice removes that per-function clone.