This is the mail archive of the gcc@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]

Re: mainline more jumpy than gcc-2.95.1 on x86


dewar@gnat.com writes:

  > <<I don't know if this is a problem in more complex code, but somebody
  > might want to investigate (given that the common wisdom is that
  > branches are bad)...                       >>
  > 
  > 
  > That's not quite the right common wisdom, the deal is that mispredicted
  > branches are bad, but in this particular case, the branches are indeed
  > likely to be mispredicted.

Correctly predicted taken branches are not too good either, for
example in a 4-issue machine, if the first instruction is a taken
branch, the 3 that are left should be scratched (assuming no delay
slots). 
On the other hand these unneeded branches occupy entries in the branch
predictor => decreased prediction accuracy. 


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