2 ms·
in which case wouldn't it make sense to use 3 simpler instructions? No. Any competitor's CPUs will also have similar constraints on fetch and decode bandwidth,
by userbinator 9y ago
in which case wouldn't it make sense to use 3 simpler instructions?
No. Any competitor's CPUs will also have similar constraints on fetch and decode bandwidth, so smaller code that isn't slower will always be the better choice (and sometimes, even slightly slower for one sequence is better if it being smaller results in less cache misses overall).
Plus, the requirement to use an extra register for the simpler sequence instead of the implicitly allocated ones that memory-ops use will affect other code nearby.