A recent patch increased GCC's memory consumption!

Joseph S. Myers joseph@codesourcery.com
Sat Jul 16 22:40:00 GMT 2005


On Sat, 16 Jul 2005, Jan Hubicka wrote:

> Joseph,
> any idea why the patch increased memory by up to 18%?

It should if anything have reduced memory consumption by causing fewer 
types to be allocated - you'll need to give more details of what sort of 
objects there are more of being allocated and where they are being 
allocated.

One possibility might be that the optimizers are working better now they 
have fewer integer types with the same width, and this causes them to 
allocate more memory - but if so, the places where the optimizers care 
about which of multiple types with the same width is being used would be 
worth tracking down, as this could also apply with e.g. int and long, not 
just with bit-field types.

-- 
Joseph S. Myers               http://www.srcf.ucam.org/~jsm28/gcc/
    jsm@polyomino.org.uk (personal mail)
    joseph@codesourcery.com (CodeSourcery mail)
    jsm28@gcc.gnu.org (Bugzilla assignments and CCs)



More information about the Gcc-regression mailing list