From: Segher Boessenkool <segher@kernel.crashing.org>
To: Stefan Franke <stefan@franke.ms>
Cc: gcc-help@gcc.gnu.org
Subject: Re: Additional peephole pass(es)
Date: Fri, 24 Apr 2020 16:07:31 -0500 [thread overview]
Message-ID: <20200424210731.GB26902@gate.crashing.org> (raw)
In-Reply-To: <04d901d616fd$55668f50$0033adf0$@franke.ms>
Hi!
On Mon, Apr 20, 2020 at 12:20:35PM +0200, Stefan Franke wrote:
> is there a chance that a patch would be accepted if it adds (an) additional
> peephole pass(es)?
That would need some serious justification.
> I'm not content with the capabilities of the combine pass
Sorry to hear that. Do you have any concrete complaints?
> and a convenient
> way would be to insert an additional pass in front/after the combine pass.
> It's way easier to maintain than the spaghetti code in combine and ss long
Spaghetti code? Heh. There is a lot of run-on code; there is a little
bit of action-at-a-distance; and almost all other sins imaginable are
committed somewhere as well, but spaghetti? Not so much :-)
> there is nothing defined in the cpu's md file, the pass gets skipped, so the
> overhead for non-users is almost non existent.
>
>
>
> Right now I'm applying the same set as in the final peephole run, but I
> would add a separate keyword per pass, e.g. peephole_precombine, etc. p.p.
>
>
>
> Your thoughts?
It probably would help if you could start with an example that shows
that an extra peephole pass would help.
Segher
prev parent reply other threads:[~2020-04-24 21:07 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-20 10:20 Stefan Franke
2020-04-20 17:34 ` Oleg Endo
2020-04-24 21:36 ` Segher Boessenkool
2020-04-25 4:04 ` Oleg Endo
2020-04-25 12:21 ` Segher Boessenkool
2020-04-24 21:07 ` Segher Boessenkool [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=20200424210731.GB26902@gate.crashing.org \
--to=segher@kernel.crashing.org \
--cc=gcc-help@gcc.gnu.org \
--cc=stefan@franke.ms \
/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).