Function sequant::eval::peak_profile_sweep

Function Documentation

inline PeakProfile sequant::eval::peak_profile_sweep(Schedule const &s)

Sweep the per-cell liveness intervals of s to find the peak live footprint, the lowest static point achieving it, and the set of cells live there.

A textbook +delta/-delta interval-event sweep: each cell deposits +footprint at first_use and -footprint just past last_use, then a single left-to-right prefix scan tracks the running live total. The strict > comparison keeps the first (lowest) point among equal-height maxima.