Why doesn't operand_equal_p check pointer equality first?

Diego Novillo dnovillo@redhat.com
Thu May 12 18:19:00 GMT 2005


Wouldn't it make sense for operand_equal_p to start with:

int
operand_equal_p (tree arg0, tree arg1, unsigned int flags)
{
  if (arg0 == arg1 && !TREE_SIDE_EFFECTS (arg0))
    return 1;
  ...
}

Am I missing something here?


Thanks.  Diego.



More information about the Gcc mailing list