[patch] remove superfluous sets to SSA_NAME_DEF_STMT
Diego Novillo
dnovillo@google.com
Thu Nov 7 20:55:00 GMT 2013
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.
More information about the Gcc-patches
mailing list