This is the mail archive of the gcc@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]

Re: Stepanov, PowerPC, life_analysis (Was: And, I forgot the patch)


> *** 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 .


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