This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] remove superfluous sets to SSA_NAME_DEF_STMT
- From: Diego Novillo <dnovillo at google dot com>
- To: Aldy Hernandez <aldyh at redhat dot com>
- Cc: gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 7 Nov 2013 15:19:09 -0500
- Subject: Re: [patch] remove superfluous sets to SSA_NAME_DEF_STMT
- Authentication-results: sourceware.org; auth=none
- References: <527BF49E dot 4050004 at redhat dot com>
On Thu, Nov 7, 2013 at 3:14 PM, Aldy Hernandez <aldyh@redhat.com> wrote:
> SSA_NAME_DEF_STMT is set by default in gimple_build_assign(), by virtue of
> gimple_assign_set_lhs:
>
>> static inline void
>> gimple_assign_set_lhs (gimple gs, tree lhs)
>> {
>> GIMPLE_CHECK (gs, GIMPLE_ASSIGN);
>> gimple_set_op (gs, 0, lhs);
>>
>> if (lhs && TREE_CODE (lhs) == SSA_NAME)
>> SSA_NAME_DEF_STMT (lhs) = gs;
>> }
>
>
> This patch removes all the unnecessary sets to SSA_NAME_DEF_STMT in the
> compiler.
>
> Tested on x86-64 Linux.
>
> OK for trunk?
OK.
Diego.