This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH: Remove redundant instructions after regcprop


On Thu, Aug 2, 2012 at 12:19 PM, Paulo J. Matos <paulo@matos-sorge.com> wrote:
> Forgot to mention: this is to fix PR 54154.
>
> Updated changelog:
>
> 2012-08-02   Paulo Matos <Paulo.Matos@csr.com>
>
>     PR middle-end/54154
>
>     * regcprop.c (copy_value): remove check for redundant moves.
>     * regcprop.c (copy_value): add check for redundant moves,
>     remove instructions if redundant.

That's in copyprop_hardreg_forward_1

+  gcc_assert(dr != sr);
+

space before ().

+  FOR_BB_INSNS_SAFE(bb, insn, next)
     {

Likewise.

+        unsigned int dr = REGNO(SET_DEST(set));
+        unsigned int sr = REGNO(SET_SRC(set));
+

Likewise.

Richard.

>
>
>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]