This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: Remove redundant instructions after regcprop
- From: Richard Guenther <richard dot guenther at gmail dot com>
- To: "Paulo J. Matos" <paulo at matos-sorge dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Thu, 2 Aug 2012 12:27:02 +0200
- Subject: Re: PATCH: Remove redundant instructions after regcprop
- References: <jvdk3m$gt7$1@dough.gmane.org> <jvdk7j$gt7$2@dough.gmane.org>
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.
>
>
>