On 11/25/2012 11:30 AM, Richard Sandiford wrote:
FWIW, the vast majority of condjumps have a REG_BR_PROB note so the
part of mostly_true_jump that handles the jumps without a REG_BR_PROB
note is itself a rare_destination :-) GCC is very careful about
preserving the notes. Perhaps all that code should just be removed.
Yeah, just returning 0 if there's no note sounds good. Preapproved if
noone objects in 24 hours.
Fine with me -- all the branch prediction code in reorg.c pre-dates the
branch prediction notes and information we carry around these days.
I wouldn't lose any sleep if all the reorg.c bits were converted to use
the existing notes and the now redundant bits removed.
jeff