Hacker News new | ask | show | jobs
by StilesCrisis 30 days ago
Optimizers eat stuff like this up. It'll restructure your loop however it wants.
1 comments

You should always check the compiled assembly with Compiler Explorer because compilers sometimes avoid certain optimizations for convoluted reasons, which are hard to predict.