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: problem with REG_DEAD


On Mon, Jan 29, 2001 at 09:52:14PM +0000, Herman ten Brugge wrote:
> 	* regmove.c (try_auto_increment): Change REG_DEAD into REG_UNUSED
> 	when register dies in the insn.

Looks reasonable.

> +		  if (note)
> +		    {
> +		      remove_note (insn, note);
> +		      REG_NOTES (insn)
> +			    = gen_rtx_EXPR_LIST (REG_UNUSED,
> +						 reg, REG_NOTES (insn));

You do not, however, need to remove the note and create
and new one.  Just update the type with PUT_MODE.


r~

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