This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Two problems with gimplify_init_constructor
- From: Richard Henderson <rth at redhat dot com>
- To: Richard Kenner <kenner at vlsi1 dot ultra dot nyu dot edu>
- Cc: gcc at gcc dot gnu dot org
- Date: Thu, 12 Aug 2004 13:57:22 -0700
- Subject: Re: Two problems with gimplify_init_constructor
- References: <10408122057.AA10475@vlsi1.ultra.nyu.edu>
On Thu, Aug 12, 2004 at 04:57:01PM -0400, Richard Kenner wrote:
> I really worry about pessimizing code. It should at least be kept for
> objects that are real constants (e.g., never assigned) and can be
> safely kept for scalars.
No, it cannot. Any scalar that gets dumped to the stack will very
likely be shared with some other memory. Objects that are real
constants should either be promoted to static memory, or constant
propagated.
r~