This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Patch ping...
- From: "Richard Guenther" <richard dot guenther at gmail dot com>
- To: "Jan Hubicka" <hubicka at ucw dot cz>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Sat, 5 Apr 2008 18:53:36 +0200
- Subject: Re: Patch ping...
- References: <20080405162606.GA22594@atrey.karlin.mff.cuni.cz>
On Sat, Apr 5, 2008 at 6:26 PM, Jan Hubicka <hubicka@ucw.cz> wrote:
> Hi,
> I would like to ping the BRANCH_COST patch
> http://gcc.gnu.org/ml/gcc/2008-03/msg00137.html
>
> I hope to proceed with updating GCC to optimize cold blocks in same way
> as -Os and explicitely marked hot functions in -Os code for speed.
> For this I need to populate RTL cost interfaces with the profile info
> and teach expansion about it.
> This is taking quite some years now, I realize it might not be clear
> what I am precisely shooting for, so I will also add wiki page.
I think the patch makes sense (BRANCH_COST is special anyway compared to
other isns cost), but I'd like to see the bigger picture as well here. In
particular, BRANCH_COST (hot, predictable), why isn't that simply
BRANCH_COST (optimize_size_p, predictable) matching what I possibly
expect for the other cost interface (insn_cost (optimize_size_p, rtx)).
Thanks,
Richard.