[patch, libfortran] Mark some codepaths as likely/unlikely
Janne Blomqvist
blomqvist.janne@gmail.com
Wed Oct 15 11:34:00 GMT 2008
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
More information about the Fortran
mailing list