4 ms·
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 th
by remexre 2y ago
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.
- WJW 2y agoThen 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.