This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Stepanov, PowerPC, life_analysis (Was: And, I forgot the patch)
- To: mark at codesourcery dot com (Mark Mitchell)
- Subject: Re: Stepanov, PowerPC, life_analysis (Was: And, I forgot the patch)
- From: Joern Rennecke <amylaar at redhat dot com>
- Date: Wed, 20 Jun 2001 21:50:04 +0100 (BST)
- Cc: gcc at gcc dot gnu dot org, rth at redhat dot com,dje at watson dot ibm dot com (David Edelsohn), jason at cygnus dot com (Jason Merrill)
> *** toplev.c 2001/06/05 20:39:11 1.420.2.25
> --- toplev.c 2001/06/09 00:58:10
> *************** rest_of_compilation (decl)
> *** 3083,3088 ****
> --- 3083,3092 ----
>
> timevar_pop (TV_CSE);
> close_dump_file (DFI_cse, print_rtl, insns);
> +
> + find_basic_blocks (insns, max_reg_num (), rtl_dump_file);
> + life_analysis (insns, rtl_dump_file,
> + PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE);
> }
>
> open_dump_file (DFI_addressof, decl);
IIRC life_analysis can be pretty costly for large functions, so maybe
we should limit this to small functions unless -fexpensive-optimizations
is active; when we decide that the extra life analysis is too expensive
for -O1, we can fall back to delete_trivially_dead_insns .