This is the mail archive of the
mailing list for the GCC project.
Re: [PATCH]: Move DECL_VALUE_EXPR into side table
- From: Mark Mitchell <mark at codesourcery dot com>
- To: Daniel Berlin <dberlin at dberlin dot org>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 03 Jun 2005 17:30:20 -0700
- Subject: Re: [PATCH]: Move DECL_VALUE_EXPR into side table
- References: <1117807545.7730.2.camel@dyn9002219143>
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.