This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: fwprop: fix REG_DEAD notes rendered incorrect
On Oct 27, 2011, Eric Botcazou <ebotcazou@adacore.com> wrote:
>> fwprop may propagate a SET_SRC that contains the last use of a REG to a
>> later point, but it will leave the REG_DEAD note in place, even though
>> it is no longer correct. I noticed this while investigating PR50826:
>> the initialization of the internal_arg_pointer has a REG_DEAD note for
>> %r29, but even after it is fwpropped, the note remains there. This
>> patch fixes this bug.
> This isn't necessarily a bug, i.e. passes aren't required to maintain
> REG_DEAD and REG_UNUSED notes up-to-date (another example is PR
> rtl-opt/48773). Instead passes consuming these notes have to invoke
> df_note_add_problem on entry.
It looked confusing, and it wasn't hard to fix, but, ok, patch
withdrawn.
--
Alexandre Oliva, freedom fighter http://FSFLA.org/~lxoliva/
You must be the change you wish to see in the world. -- Gandhi
Be Free! -- http://FSFLA.org/ FSF Latin America board member
Free Software Evangelist Red Hat Brazil Compiler Engineer