Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It would be very normal for a compiler to do an increment (or merge it into a later instruction), but never do the decrement, and instead use the old copy of the value.



Then in the next step, it would see that the result of the increment is never used and thus the increment instruction is dead code and can also be removed.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: