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]

Optimize nonoptimizing compilation V


Hi,
this patch avoid liveness rebuild when not optimizing.  I believe it is
safe, but I am not 100% sure.  It has bootstrapped/regtested mainline on
i386.
Sat Feb 22 12:49:30 CET 2003  Jan Hubicka  <jh at suse dot cz>
	* toplev.c (rest_of_compilation): Avoid recompute_reg_usage
	when not optimizing.
Index: toplev.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/toplev.c,v
retrieving revision 1.718
diff -c -3 -p -r1.718 toplev.c
*** toplev.c	22 Feb 2003 10:02:29 -0000	1.718
--- toplev.c	22 Feb 2003 11:49:25 -0000
*************** rest_of_compilation (decl)
*** 3263,3269 ****
    /* Any of the several passes since flow1 will have munged register
       lifetime data a bit.  We need it to be up to date for scheduling
       (see handling of reg_known_equiv in init_alias_analysis).  */
!   recompute_reg_usage (insns, !optimize_size);
  
    timevar_push (TV_SCHED);
  
--- 3263,3270 ----
    /* Any of the several passes since flow1 will have munged register
       lifetime data a bit.  We need it to be up to date for scheduling
       (see handling of reg_known_equiv in init_alias_analysis).  */
!   if (optimize)
!     recompute_reg_usage (insns, !optimize_size);
  
    timevar_push (TV_SCHED);
  


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