This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: problem with REG_DEAD
- To: Herman ten Brugge <Haj dot Ten dot Brugge at net dot HCC dot nl>
- Subject: Re: problem with REG_DEAD
- From: Richard Henderson <rth at redhat dot com>
- Date: Mon, 29 Jan 2001 17:03:59 -0800
- Cc: gcc-patches at gcc dot gnu dot org
- References: <200101292152.VAA12451@net.HCC.nl>
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~