This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/27798] gimplifying "return CONSTANT" creates unneeded temporaties
- From: "dnovillo at redhat dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 Jun 2006 14:49:32 -0000
- Subject: [Bug tree-optimization/27798] gimplifying "return CONSTANT" creates unneeded temporaties
- References: <bug-27798-1008@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from dnovillo at redhat dot com 2006-06-13 14:49 -------
Subject: Re: gimplifying "return CONSTANT" creates
unneeded temporaties
dann at godzilla dot ics dot uci dot edu wrote on 06/13/06 10:42:
> ------- Comment #3 from dann at godzilla dot ics dot uci dot edu 2006-06-13 14:42 -------
> One of the issues with this PR and also 27800, 27809 and 27810 is that this
> extra work/memory allocation done for a number of functions that are never
> used: like all the inline functions present in the glibc headers. These
> functions are thrown out after gimplification...
>
We need to strike a balance between the potential memory savings due to
a more streamlined GIMPLE and the effort needed to get it.
We should avoid anything that requires the gimplifier to build complex
dataflow and/or duplicate existing optimizations.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27798