Re: [wide-int] Use __builtin_expect for length checks

2013-11-30 Thread Richard Biener
Richard Sandiford wrote: >Without profiling information, GCC tends to assume "x == 1" and >"x + y == 2" are likely false, so this patch adds some >__builtin_expects. >(system.h has a dummy definition for compilers that don't support >__builtin_expect.) > >Tested on x86_64-linux-gnu. OK to install

[wide-int] Use __builtin_expect for length checks

2013-11-30 Thread Richard Sandiford
Without profiling information, GCC tends to assume "x == 1" and "x + y == 2" are likely false, so this patch adds some __builtin_expects. (system.h has a dummy definition for compilers that don't support __builtin_expect.) Tested on x86_64-linux-gnu. OK to install? Thanks, Richard Index: gcc/w