This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [tree-ssa] CALL_EXPR support for operand_equal_p
- From: Jason Merrill <jason at redhat dot com>
- To: law at redhat dot com
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Thu, 12 Jun 2003 04:04:46 -0400
- Subject: Re: [tree-ssa] CALL_EXPR support for operand_equal_p
- References: <200306120707.h5C77vY0017329@speedy.slc.redhat.com>
On Thu, 12 Jun 2003 01:07:57 -0600, law@redhat.com wrote:
> In message <wvlk7breq17.fsf@prospero.boston.redhat.com>, Jason Merrill writes:
> >I would expect you to check for "const" in operand_equal_p; two calls with
> >side effects should not be considered equal.
> Ugh. I thought the TREE_SIDE_EFFECTS test was in a more general
> location, not localized to the 'r' cases.
>
> Seems to me we need to be peeking at TREE_SIDE_EFFECTS in the call case
> (as opposed for checking for "const" directly)
That works, too.
Jason