* [RFC] md reorg plans for 4.6?
@ 2009-10-30 22:27 Paolo Bonzini
2009-10-31 4:02 ` Ian Lance Taylor
0 siblings, 1 reply; 3+ messages in thread
From: Paolo Bonzini @ 2009-10-30 22:27 UTC (permalink / raw)
To: gcc
Hi all,
with the new plugin infrastructure, it makes sense to replace the
one-catches-all md reorg pass with target-specific passes plugged into
the pass manager.
If the md reorg is doing just complex peephole optimizations that cannot
be achieved with targets, that's fine.
This has the advantage of being able to move passes where they really
belong. Many targets could benefit:
- Blackfin, IA64 and picochip is doing clever tricks to move splitting,
sched2 and vartracking in the middle of its reorg
- MEP doesn't do the same tricks with vartracking, but also requires
dataflow
- MIPS also could be split in several passes with nice dumps,
eliminating crtl->dbr_scheduled_p which is there just to place
delay-slot scheduling in the middle of md reorg
- i386... md reorg is sane and it is already doing plugin-style pass
registration... but what about moving reg-stack.c to config/i386? :-)
- the split passes are a mess and some targets split again at the
beginning of reorg -- having separate dumps would be nice (s390)
- there's also M68HC11 and SH... well, I doubt there will be volunteers.
- for SPU, there is an additional scheduling pass done as part of
md_reorg; again, splitting dumps would be nice and in addition I wonder
if doing sched2+this pass is really necessary if more pass placement
freedom is given to the backend.
At the same time, it would be nice to free the CFG only for targets that
absolutely abhor it (doing so in their own md reorg pass) rather than
doing it for all targets.
Paolo
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [RFC] md reorg plans for 4.6?
2009-10-30 22:27 [RFC] md reorg plans for 4.6? Paolo Bonzini
@ 2009-10-31 4:02 ` Ian Lance Taylor
2009-10-31 22:08 ` Steven Bosscher
0 siblings, 1 reply; 3+ messages in thread
From: Ian Lance Taylor @ 2009-10-31 4:02 UTC (permalink / raw)
To: Paolo Bonzini; +Cc: gcc
Paolo Bonzini <bonzini@gnu.org> writes:
> with the new plugin infrastructure, it makes sense to replace the
> one-catches-all md reorg pass with target-specific passes plugged into
> the pass manager.
Yes, please.
> - there's also M68HC11 and SH... well, I doubt there will be volunteers.
But note that, e.g., bt-load.c looks like a generic file but is
actually SH specific, so moving it into config/sh will be an
improvement for everybody.
Ian
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [RFC] md reorg plans for 4.6?
2009-10-31 4:02 ` Ian Lance Taylor
@ 2009-10-31 22:08 ` Steven Bosscher
0 siblings, 0 replies; 3+ messages in thread
From: Steven Bosscher @ 2009-10-31 22:08 UTC (permalink / raw)
To: Ian Lance Taylor; +Cc: Paolo Bonzini, gcc
On Saturday, October 31, 2009, Ian Lance Taylor <iant@google.com> wrote:
> Paolo Bonzini <bonzini@gnu.org> writes:
>> - there's also M68HC11 and SH... well, I doubt there will be volunteers.
>
> But note that, e.g., bt-load.c looks like a generic file but is
> actually SH specific, so moving it into config/sh will be an
> improvement for everybody.
Actually bt-load or something similar would be useful for at least one
other target, ia64.
Ciao,
Steven
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-10-31 18:10 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-30 22:27 [RFC] md reorg plans for 4.6? Paolo Bonzini
2009-10-31 4:02 ` Ian Lance Taylor
2009-10-31 22:08 ` Steven Bosscher
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).