[Patch, regrename] Fix PR87330 : ICE in scan_rtx_reg, at regrename.c

Sameera Deshpande sameera.deshpande@linaro.org
Tue Oct 30 10:55:00 GMT 2018


On Tue, 9 Oct 2018 at 04:08, Eric Botcazou <ebotcazou@adacore.com> wrote:
>
> > Other notes need not be changed, as they don't hold renamed register
> > information.
> >
> > Ok for trunk?
>
> No, REG_DEAD & REG_UNUSED note must be recomputed by passes consuming them.
>
> > 2018-10-09 Sameera Deshpande <sameera.deshpande@linaro.org
> >
> > * gcc/regrename.c (regrename_do_replace): Add condition to alter
> > regname if note has same register marked dead in notes.
>
> No gcc/ prefix in gcc/ChangeLog.
>
> --
> Eric Botcazou

Hi Eric,

Thanks for your comments.

Please find attached updated patch invoking data flow for updating the
REG_DEAD and REG_UNUSED notes.

As this change is made in falkor specific file, adding James and
Richard for review.

Ok for trunk?

Changelog:

2018-10-30 Sameera Deshpande <sameera.deshpande@linaro.org

* gcc/config/aarch64/falkor-tag-collision-avoidance.c
(execute_tag_collision_avoidance): Invoke df_note_add_problem to
recompute REG_DEAD and REG_UNUSED notes before analysis.
-- 
- Thanks and regards,
  Sameera D.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bug87330.patch
Type: text/x-patch
Size: 524 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20181030/48489926/attachment.bin>


More information about the Gcc-patches mailing list