Speed up CreateMemoryMinimizingSequence.
In particular, BytesFreedIfScheduled is the O(n^2) kernel of our scheduling algorithm, and it used to do one hashtable lookup for each input and output buffer of its instruction. This patch gets rid of all of the hashtable lookups, replacing them with simple pointer dereferences. PiperOrigin-RevId: 161413495
Loading
Please sign in to comment