This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Why doesn't operand_equal_p check pointer equality first?
- From: Diego Novillo <dnovillo at redhat dot com>
- To: gcc at gcc dot gnu dot org
- Date: Thu, 12 May 2005 13:14:15 -0400
- Subject: Why doesn't operand_equal_p check pointer equality first?
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.