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]

Re: unconditional pre-reload splitter


> Which is wrong insn 298 shouldn't have a REG_EQUIV note because
> it is set more than once.
> 
> Jan did you intended to do the spliting when not optimizing if so
> then the register use info needs to get updated.
> 
> The easiest way is get rid of the register_life_up_to_date flag
> and always call recompute_reg_usage.
Whats about clearing register_life_up_to_date even when not optimizing
like this? Does it solve your problem?

*** toplev.c.old	Thu Jul 12 18:37:00 2001
--- toplev.c	Sat Jul 14 02:13:51 2001
*************** rest_of_compilation (decl)
*** 3416,3423 ****
  
    /* Any of the several passes since flow1 will have munged register
       lifetime data a bit.  */
!   if (optimize > 0)
!     register_life_up_to_date = 0;
  
  #ifdef OPTIMIZE_MODE_SWITCHING
    timevar_push (TV_GCSE);
--- 3416,3422 ----
  
    /* Any of the several passes since flow1 will have munged register
       lifetime data a bit.  */
!   register_life_up_to_date = 0;
  
  #ifdef OPTIMIZE_MODE_SWITCHING
    timevar_push (TV_GCSE);


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