prevent REG_EQUAL on set-mem insns

Steven Bosscher stevenb.gcc@gmail.com
Fri Sep 10 17:37:00 GMT 2010


On Fri, Sep 10, 2010 at 6:26 PM, Olivier Hainque <hainque@adacore.com> wrote:
>
> Olivier
>
> 2010-09-10  Olivier Hainque  <hainque@adacore.com>
>
>        * fwprop.c (forward_propagate_and_simplify): Only attach a
>        REG_EQUAL note to an insn if the destination is a register.
>        * gcse.c (try_replace_reg): Likewise.
>

This looks OK to me (note: I can't approve the patch) but I think it
would be a good idea to add some code to set_unique_reg_note for good
measure.

Ciao!
Steven



More information about the Gcc-patches mailing list