Re: Stack allocate DFS::scc_stack and DFS::worklist

2019-11-20 Thread Richard Biener
On Wed, 20 Nov 2019, Jan Hubicka wrote: > Hi, > another common (ab)use of malloc/free is the DEF worklist and stack > used in streaming out. Since most of SCCs are small, we could easily > use stack for them in majority of time. > > Bootstrapped/regtested x86_64-linux, OK? OK. > * lto-st

Stack allocate DFS::scc_stack and DFS::worklist

2019-11-20 Thread Jan Hubicka
Hi, another common (ab)use of malloc/free is the DEF worklist and stack used in streaming out. Since most of SCCs are small, we could easily use stack for them in majority of time. Bootstrapped/regtested x86_64-linux, OK? * lto-streamer-out.c (DFS::sccstack): Turn into auto-vec;