This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [tree-ssa] CALL_EXPR support for operand_equal_p


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]