[PATCH] Significantly reduce memory usage of genattrtab

Bernd Edlinger bernd.edlinger@hotmail.de
Tue Nov 15 10:56:00 GMT 2016


Hi!

The genattrtab build-tool uses way too much memory in general.
I think there is no other build step that uses more memory.

On the currently trunk it takes around 700MB to build the
ARM latency tab files.  I debugged that yesterday
and found that this can be reduced to 8MB (!).  Yes, really.

So the attached patch does try really hard to hash and re-use
all ever created rtx objects.


Bootstrapped and reg-tested on x86_64-pc-linux-gnu and ARM.
Is it OK for trunk?


Thanks
Bernd.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: changelog-genattrtab.txt
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20161115/67eb2205/attachment.txt>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch-genattrtab.diff
Type: text/x-patch
Size: 9535 bytes
Desc: patch-genattrtab.diff
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20161115/67eb2205/attachment.bin>


More information about the Gcc-patches mailing list