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, libfortran] Mark some codepaths as likely/unlikely


On Wed, Oct 15, 2008 at 1:55 PM, Thomas Koenig <tkoenig@netcologne.de> wrote:
> here's a straightforward patch to mark some codepaths as
> likely/unlikely, depending on two criteria:
>
> - A codepath that reaches generate_error() is assumed to be unlikely
>
> - A test for GFC_CONVERT_NATIVE is assumed to be likely

Uh? Do you have benchmark results showing an improvement? My gut
instinct would be that the IO library is limited by 1) the hard drive
2) syscall overhead 3) just plain lot of code to trawl through for
every read/write statement resulting in overhead when reading/writing
scalars; branch misprediction penalties would be pretty low on my list
in this case.  But hey, I'm willing to have my gut instinct proved
wrong by data. ;)


-- 
Janne Blomqvist


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