Re: Add a way to free tree node

2015-11-24 Thread Bernhard Reutner-Fischer
On November 24, 2015 10:59:01 AM GMT+01:00, Richard Biener wrote: >On Tue, Nov 24, 2015 at 9:45 AM, Jan Hubicka wrote: >> Hi, >> while looking into the earlier bug I noticed that type_hash_canon is >used to >> avoid producing type duplicates. The type is however created, then >looked up >> in t

Re: Add a way to free tree node

2015-11-24 Thread Richard Biener
On Tue, Nov 24, 2015 at 9:45 AM, Jan Hubicka wrote: > Hi, > while looking into the earlier bug I noticed that type_hash_canon is used to > avoid producing type duplicates. The type is however created, then looked up > in the cache and if it exists it is never used. The function takes care to > r

Add a way to free tree node

2015-11-24 Thread Jan Hubicka
Hi, while looking into the earlier bug I noticed that type_hash_canon is used to avoid producing type duplicates. The type is however created, then looked up in the cache and if it exists it is never used. The function takes care to remove the code found memory stats but never actually free it.