[patch] Speed up operand_equal_p during SSA optimizations.
Jeffrey A Law
law@redhat.com
Fri Nov 26 20:22:00 GMT 2004
On Fri, 2004-11-26 at 12:35 -0500, Diego Novillo wrote:
> 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.
That would be my preference as well.
jeff
More information about the Gcc-patches
mailing list