Re:Why do RET instructions have a REPZ prepended on x86?
by tristanj on Monday August 26, 2013 @11:23PM
(#6281285)
This is an issue with AMD's branch predictor, not with the x86 ISA. The code would work fine with a single "ret" instead, however people found using "rep ret" made it nanoseconds faster. it just shows how you can find optimizations in the most unexpected of places.
[ Parent
| on HN ]