This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [GSoC][match-and-simplify] get rid of multiple def_stmt
- From: Richard Biener <richard dot guenther at gmail dot com>
- To: Prathamesh Kulkarni <bilbotheelffriend at gmail dot com>
- Cc: Diego Novillo <dnovillo at google dot com>, "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>, Maxim Kuvyrkov <maxim dot kuvyrkov at linaro dot org>
- Date: Wed, 25 Jun 2014 10:08:32 +0200
- Subject: Re: [GSoC][match-and-simplify] get rid of multiple def_stmt
- Authentication-results: sourceware.org; auth=none
- References: <CAJXstsCV_N=5ekjSvEX21ThOSzpJs_MVzbEF8h5cSHnEu+ROaA at mail dot gmail dot com>
On Tue, Jun 24, 2014 at 6:49 PM, Prathamesh Kulkarni
<bilbotheelffriend@gmail.com> wrote:
> This patch avoids multiple definitions of def_stmt in different
> blocks, and moves it at
> the beginning of gimple_match_and_simplify.
>
> * genmatch.c (decision_tree::gen_gimple): Call fprintf to generate
> definition of def_stmt.
> (dt_operand::gen_gimple_expr): Adjust call to fprintf to generate
> assignment of def_stmt.
Actually I see no issue with multiple declarations of def_stmt shadowing
each other. So I think this makes the code harder to follow.
Richard.
> Thanks and Regards,
> Prathamesh