This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
reg-stack speedup
- To: gcc-patches at gcc dot gnu dot org
- Subject: reg-stack speedup
- From: Jan Hubicka <jh at suse dot cz>
- Date: Tue, 23 Oct 2001 16:11:49 +0200
Hi,
reg-stack contains one extra liveness analyzis call, after jump has died.
Honza
Tue Oct 23 16:10:02 CEST 2001 Jan Hubicka <jh@suse.cz>
* reg-stack.c (reg_to_stack): Avoid life analyzis when optimizing.
Index: reg-stack.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/reg-stack.c,v
retrieving revision 1.94
diff -c -3 -p -r1.94 reg-stack.c
*** reg-stack.c 2001/10/11 03:15:57 1.94
--- reg-stack.c 2001/10/23 14:09:23
*************** reg_to_stack (first, file)
*** 442,450 ****
/* Ok, floating point instructions exist. If not optimizing,
build the CFG and run life analysis. */
if (!optimize)
! find_basic_blocks (first, max_reg_num (), file);
! count_or_remove_death_notes (NULL, 1);
! life_analysis (first, file, PROP_DEATH_NOTES);
mark_dfs_back_edges ();
/* Set up block info for each basic block. */
--- 442,452 ----
/* Ok, floating point instructions exist. If not optimizing,
build the CFG and run life analysis. */
if (!optimize)
! {
! find_basic_blocks (first, max_reg_num (), file);
! count_or_remove_death_notes (NULL, 1);
! life_analysis (first, file, PROP_DEATH_NOTES);
! }
mark_dfs_back_edges ();
/* Set up block info for each basic block. */