From: Richard Sandiford <rdsandiford@googlemail.com>
To: Jeff Law <law@redhat.com>
Cc: gcc-patches@gcc.gnu.org
Subject: Re: RFC: Faster for_each_rtx-like iterators
Date: Mon, 19 May 2014 18:46:00 -0000 [thread overview]
Message-ID: <87zjidk3nb.fsf@talisman.default> (raw)
In-Reply-To: <537A4B2C.9060002@redhat.com> (Jeff Law's message of "Mon, 19 May 2014 12:19:24 -0600")
Jeff Law <law@redhat.com> writes:
> On 05/17/14 01:33, Richard Sandiford wrote:
>> I suppose we could put the onus on the users of the iterator to invoke
>> a "handle subrtxes of this code" routine once they know what the code is.
>> That could make things a bit ugly though. E.g.:
>>
>> FOR_EACH_SUBRTX (iter, array, expr, NONCONST)
>> if (GET_CODE (*iter) == VALUE && CSELIB_VAL_PTR (*iter)->uid > minuid)
>> return true;
>>
>> would become:
>>
>> FOR_EACH_SUBRTX (iter, array, expr, NONCONST)
>> if (GET_CODE (*iter) == VALUE)
>> {
>> if (CSELIB_VAL_PTR (*iter)->uid > minuid)
>> return true;
>> iter.code_is (VALUE);
>> }
>>
>> It began to feel like premature optimisation.
> Understood. Thanks for poking at it.
>
> There's something about FOR_EACH_RTX that feels like it needs a rethink,
> but I haven't managed to put my head around it yet. I'll put it away
> for a while.
>
> So as far as the patch itself is concerned, are there any outstanding
> issues?
No, I just need to find time to brush off the patches and submit them
properly (looks there are 57 in all). Hope to do that in the next
week or so.
Thanks for the reviews.
Richard
prev parent reply other threads:[~2014-05-19 18:46 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-07 20:52 Richard Sandiford
2014-05-07 21:31 ` Mike Stump
2014-05-08 1:20 ` Trevor Saunders
2014-05-08 6:25 ` Richard Sandiford
2014-05-08 6:30 ` Richard Sandiford
2014-05-08 11:20 ` Trevor Saunders
2014-05-09 6:18 ` Jeff Law
2014-05-09 10:41 ` Richard Biener
2014-05-17 7:34 ` Richard Sandiford
2014-05-19 18:19 ` Jeff Law
2014-05-19 18:46 ` Richard Sandiford [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87zjidk3nb.fsf@talisman.default \
--to=rdsandiford@googlemail.com \
--cc=gcc-patches@gcc.gnu.org \
--cc=law@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).