This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Improve VEC_BASE


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 11/07/11 14:25, Jakub Jelinek wrote:
> Hi!
> 
> This patch attempts to optimize VEC_BASE if we know that offsetof
> of base is 0 (unless the compiler is doing something strange, it is
> true). It doesn't have a clear code size effect, some .text
> sections grew, supposedly because of more inlining, some .text
> sections shrunk.
> 
> Bootstrapped/regtested on x86_64-linux and i686-linux.
> 
> 2011-11-07  Jakub Jelinek  <jakub@redhat.com>
> 
> * vec.h (VEC_BASE): If base is at offset 0 in the structure, use
> &(P)->base even if P is NULL.
Presumably this becomes redundant with we went with Richi's patch?

jeff

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJOvLmLAAoJEBRtltQi2kC7BNUIAJMJvrpgtSfIrPDZ/JHXM1on
Td5M5ebXO7lgdf5W5SJU5WiuRqHG2N+J/YJ9mJgUaCdLrbKJQXTdU/jbMaJqbwlR
g1LU7nMHM2Kf87zXdJCdcuB7BfMfmVcpNVopuab1GA6nRye9ru3+SXpXbDSiNmeM
1j8r1IEeL37sWPX2opUHgE9bQfaqDigonlPiqw+JxWQXGBpAvy2xS5CNd93RoN80
SLtHnxWoULpwJ16E9mpgTtR8kG8mFYaWAuWDKMpTX21hK/nTIkjGpFEOHddIjI8n
z/c3zUcjrJujQ773qReSEY0tLdtrckS7/Gy01tIc+yMus7VmVfdt4lpabeoXwX4=
=mJd5
-----END PGP SIGNATURE-----


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]