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]: Move DECL_VALUE_EXPR into side table


Daniel Berlin wrote:
This moves DECL_VALUE_EXPR into a side table, which will save 4/8 bytes
on struct tree_decl_with_rtl derived trees.

Most things actually just want to know whether DECL_VALUE_EXPR is NULL
or not, so i used a bit that is kept in sync with whether there is an
entry in the hashtable or not.

Bootstrapped and regtested on i686-pc-linux-gnu.

Timings show this has no speedup or slowdown on cc1-i-files, tramp3d, or
any other cases i threw at it.

Okay for mainline?

OK. Do we ever clear out DECL_VALUE_EXPR? We don't really need it after the function has been emitted to the .s file. I don't know that it would be a win to discard, but it might be.


--
Mark Mitchell
CodeSourcery, LLC
mark@codesourcery.com
(916) 791-8304


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