News for hackers. Stuff that matters.
Re:Branch predictor: How many “if”s are too many? by asveikau on Thursday May 06, 2021 @11:56PM (#27071960)
> Now some JIT impls like tracing JIT replace virtual function calls with if-elses.

I think it was about 2010ish when I first noticed a C compiler (Microsoft's) doing this optimization for function pointer calls. Might have been a link time optimization, because caller and callee were in different compilation units.

There are no comments on this comment yet.