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]

reg-stack speedup


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


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