This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] Speed up operand_equal_p during SSA optimizations.
- From: Diego Novillo <dnovillo at redhat dot com>
- To: Kazu Hirata <kazu at cs dot umass dot edu>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Fri, 26 Nov 2004 12:35:26 -0500
- Subject: Re: [patch] Speed up operand_equal_p during SSA optimizations.
- Organization: Red Hat Canada
- References: <20041126.122633.80035133.kazu@cs.umass.edu>
On Fri, Nov 26, 2004 at 12:26:33PM -0500, Kazu Hirata wrote:
> Attached is a patch to have a special version of operand_equal_p for
> SSA optimizations.
>
Hmm, why not move the common cases up in operand_equal_p?
if (TREE_CODE (arg0) == SSA_NAME && TREE_CODE (arg1) == SSA_NAME)
return arg0 == arg1;
and similarly for constants.
Diego.