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: Remove unused variables from REFERENCED_VARS list


On 1/12/07, Jan Hubicka <jh@suse.cz> wrote:
Hi,
this patch makes remove_unused_locals to prunt not only unexpanded_var_list but
also referenced_vars that are a lot more commonly traversed.  For temporaries
this also makes them available for ggc memory.  On tramp3d after early
optimization about 70% of local variables can be reclaimed to GGC this way
reducing peak memory usage from 720 to 630MB.

:ADDPATCH tree-optimization:
Bootstrapped/regtested i686-linux, OK?

This is ok (thanks for this work!).


Richard.

Honza
        * tree-dfa.c (remove_referenced_var): New function.
        * tree-ssa-live.c (remove_unused_locals): Walk referenced vars and
        prune referenced vars list too.
        * tree-flow.h (remove_referenced_var): Declare.


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