This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Fix PR optimization/7520
> > The proposed fix is to let this mecanism trigger in this latter case when
> > the clobbered register is live after the insn, so as to prevent the REG_DEAD
> > note from being attached.
>
> That is incorrect. In the case of use+set, the value is live
> after the insn. In the case of use+clobber, it isn't.
What is exactly incorrect ? To say "when the clobbered register is live
after the insn" or the proposed fix ? In the former case, is "when the
clobbered register is live at the next insn" more correct ? Or do you mean
that a clobbered register must never be live at the next insn ?
--
Eric Botcazou