[tree-ssa] CALL_EXPR support for operand_equal_p
Jason Merrill
jason@redhat.com
Thu Jun 12 08:14:00 GMT 2003
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
More information about the Gcc-patches
mailing list