This is the mail archive of the
java-patches@sourceware.cygnus.com
mailing list for the Java project.
Re: Patch: More __builtin_expect fun
- To: tromey at cygnus dot com
- Subject: Re: Patch: More __builtin_expect fun
- From: Anthony Green <green at cygnus dot com>
- Date: Mon, 1 May 2000 14:03:46 -0700
- CC: bryce at albatross dot co dot nz, java-patches at sourceware dot cygnus dot com
- References: <390D5842.3873EDB2@albatross.co.nz> <200005012054.NAA10404@ferrule.cygnus.com>
- Reply-to: green at cygnus dot com
Tom wrote:
> I think we should definitely only do this when there is a measurable
> benefit. There is a tradeoff with maintainability.
Bryce - did you compile with -freorder-blocks? I think you need to
use that flag for __builtin_expect to have any effect. I was never
able to get it working (there are some general compiler issues to sort
out still - I think an important fix went in today).
Admittedly, my __builtin_expect patch was partially speculative
although I did have some profile info to guide me.
AG
--
Anthony Green Red Hat
Sunnyvale, California