On Tue, Jul 28, 2020 at 12:23 PM Martin Liška <mli...@suse.cz> wrote: > > On 7/27/20 1:31 PM, Richard Biener wrote: > > No, add gro*_exact variants and replace existing ones with this, then switch > > to exact = false for the non-_exact variants. Or add a exact=false argument > > to all of them and make all existing calls explicitly passing true. > > -EBITLAZY
Indeed you are - you're missing to update a lot of vec_safe_grow[_cleared] calls. Esp. the lto-streamer ones warrant a , true arg since we explicitly streamed the number of elements. How did you select the ones you updated and those you did not? (which is why I asked for a boiler-plate replacement of , true first, then making the parameter defaulted to false and adjusting those cases you found) > Anyway, I prepared a patch that adds exact=false for all the grow functions. > Apart from selective scheduling, all other consumers seems happy. And I > removed > the artificial capacity growth calculations at places mentioned by Honza. > > Patch can bootstrap on x86_64-linux-gnu and survives regression tests. > > Ready to be installed? > Thanks, > Martin