This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Patch ping...


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]