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] Speed up operand_equal_p during SSA optimizations.


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.


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