logoalt Hacker News

StilesCrisis • today at 3:50 AM • 1 reply • view on HN

Optimizers eat stuff like this up. It'll restructure your loop however it wants.


Replies

bugake • today at 5:55 AM

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