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 superfluous sets to SSA_NAME_DEF_STMT


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.


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