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: law at redhat dot com
- To: Jason Merrill <jason at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Thu, 12 Jun 2003 01:07:57 -0600
- Subject: Re: [tree-ssa] CALL_EXPR support for operand_equal_p
- Reply-to: law at redhat dot com
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)
jeff
g
>
>Jason