News for hackers. Stuff that matters.
Re:Does a compiler use all x86 instructions? (2010) by gpderetta on Thursday August 25, 2016 @09:06AM (#12358666)
> I have a mixed feeling about that incredible progress in modern CPUs branch prediction. Don't they just use idle execution units and run both branches in parallel behind the scenes?

No, I do not know of any production CPU that does it; Branch predictor accuracy today is ~98-99% so it would be a waste of power and execution capability to speculate both paths of a branch.

Also, I think code in average executes 1 jump every 5 instructions and an OoO core can speculate hundreds of instructions in advance, so the number of possible code paths would explode very quickly.

There are no comments on this comment yet.