This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] New pass to partition single function into multiple (resubmission)
- From: Diego Novillo <dnovillo at google dot com>
- To: Richard Guenther <richard dot guenther at gmail dot com>
- Cc: Revital1 Eres <ERES at il dot ibm dot com>, Steven Bosscher <stevenb dot gcc at gmail dot com>, gcc-patches at gcc dot gnu dot org, Jan Hubicha <jh at suse dot cz>
- Date: Wed, 15 Jul 2009 16:59:15 -0400
- Subject: Re: [PATCH] New pass to partition single function into multiple (resubmission)
- References: <OF92C32BEE.9C242D7E-ONC22575AD.003A0103-C22575AD.003A28EE@il.ibm.com> <571f6b510905050509oe83494dyc5d06a45175666bf@mail.gmail.com> <OFF8D89692.8B5697D5-ONC22575C9.00270131-C22575C9.004BCF7C@il.ibm.com> <b798aad50907151310u1ec02013m848fc06645d14fc9@mail.gmail.com> <84fc9c000907151355n6cbad3b4oebb4c475bae6970a@mail.gmail.com>
On Wed, Jul 15, 2009 at 16:55, Richard
Guenther<richard.guenther@gmail.com> wrote:
> Still feels like a hack to me that has its arms twisted too much into the
> middle-end.
Hm? How else would you do it? The transformation looks to split a
function into chunks that can fit in arbitrary code segments. The
middle end is where we keep the basic blocks of the function, so we
traverse those and ask the target to tell us where to split the
blocks.
I don't see another way of implementing it. Doing it in md-reorg
seems too late as you'd need to replicate a lot of code for every
target that wanted to support this. But I have not really thought
about the problem at length, so perhaps I'm missing something obvious.
Diego.