Branch predictor: How many "if"s are too many? Including x86 and M1 benchmarks!
I published an article on Cloudflare blog:
Notable discussions mentioning this work:
Looking at BTB behavior and size: a comment on my work from Travis Downs, followed by response from Linus Torvalds.
Discussion on M1 architecture, with fascinating take on branch predictor interactions with iCache prefetcher.