This is the mail archive of the
mailing list for the GCC project.
Re: share all int csts
- From: Mark Mitchell <mark at codesourcery dot com>
- To: Nathan Sidwell <nathan at codesourcery dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>, Zack Weinberg <zack at codesourcery dot com>
- Date: Wed, 27 Oct 2004 16:33:48 -0700
- Subject: Re: share all int csts
- Organization: CodeSourcery, LLC
- References: <417E534A.email@example.com>
Nathan Sidwell wrote:
This patch implements a hash table to back the INT_CST vector caches.
When an integer is small, it is still placed in the type's vector cache.
When it is large, it is placed in this hash table.
There was no difference in unchecked bootstrap time on darwin.
It shows a small speedup ~0.2% on qt and similarly a small increase
for geralds PR 8361 testcase.
booted & tested on i686-pc-linux-gnu, ok?
Yes, assuming that constants with TREE_OVERFLOW don't end up in there.
(I see the hash function doesn't check for that.) The hard-coded 1024
for the initial hash table size isn't very attractive, but it doesn't
seem very --param-worthy, either.