4 ms·
Note that Intel added CMOV when they were already on out-of-order CPUs. The link doesn't show what the context of the discussion is, but its intended applicati
by zurn 13y ago
Note that Intel added CMOV when they were already on out-of-order CPUs.
The link doesn't show what the context of the discussion is, but its intended application is the case where Linus says it does work:
" - if you KNOW the branch is totally unpredictable, cmov is often good for performance."
You see this kind of data dependent branches in eg. compression code where the unpredictability is inherent.
- pjdc 13y agoContext: http://thread.gmane.org/gmane.linux.kernel/480224/focus=480366 http://thread.gmane.org/gmane.linux.kernel/480224/focus=4803...