logoalt Hacker News

fpolingtoday at 3:47 PM2 repliesview on HN

I wonder are there any compilers that recognizes switch-in-loop pattern of interprets and optimizes it to be branch-predictor friendly using multiple indirect jumps?


Replies

dhosektoday at 7:03 PM

I believe that Rust does this which implies that it might be common to the clang back end.

keynhatoday at 7:12 PM

[flagged]