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]

Re: Prevent reload from copying many instructions


Jan Hubicka <jh@suse.cz> writes:

> 	* reload1.c (forget_marked_reloads): New function.
> 	(forget_old_reloads_1): When data are passed, just mark the registers
> 	for later removal.
> 	(reload_as_needed): Use the new mechanizm.
> -	  rtx oldpat = copy_rtx (PATTERN (insn));
> -
> +	  regset_head regs_to_forget;
> +	  INIT_REG_SET (&regs_to_forget);
> +	  note_stores (PATTERN (insn), forget_old_reloads_1, &regs_to_forget);
>  	  /* If this is a USE and CLOBBER of a MEM, ensure that any
>  	     references to eliminable registers have been removed.  */
>  

Please add a blank line before the comment.

OK with that change.

Thanks.

:REVIEWMAIL:

Ian


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