This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: GCC driver to "Compile twice, score the assembly, choose the best"?
- From: Richard Biener <richard dot guenther at gmail dot com>
- To: Ian Bolton <ian dot bolton at arm dot com>
- Cc: GCC Development <gcc at gcc dot gnu dot org>
- Date: Thu, 15 May 2014 13:49:28 +0200
- Subject: Re: GCC driver to "Compile twice, score the assembly, choose the best"?
- Authentication-results: sourceware.org; auth=none
- References: <5374a933 dot aa91420a dot 654b dot 6ee3SMTPIN_ADDED_BROKEN at mx dot google dot com>
On Thu, May 15, 2014 at 1:46 PM, Ian Bolton <ian.bolton@arm.com> wrote:
> Hi, fellow GCC developers!
>
> I was wondering if the "gcc" driver could be made to invoke
> "cc1" twice, with different flags, and then just keep the
> better of the two .s files that comes out?
I'd be interested in your .s comparison tool that decides which one
is better!
Richard.
> I'm sure this is not a new idea, but I'm not aware of
> anything being done in this area, so I've made this post to
> gather your views. :)
>
> The kinds of flags I am thinking could be toggled are
> register allocation and instruction scheduling ones, since
> it's very hard to find one-size-fits-all there and we don't
> really want to have the user depend on knowing the right
> one.
>
> Obviously, compilation time will go up, but the run-time
> benefits could be huge.
>
> What are your thoughts? What work in this area have I
> failed to dig up in my limited research?
>
> Many thanks,
> Ian
>
>
>
>