Hacker News new | past | comments | ask | show | jobs | submit login

This email thread from Linus might be interesting: https://yarchive.net/comp/linux/cmov.html



My understanding of out-of-order (and pipelined) CPUs is limited, but it’s interesting that CMOV isn’t interpreted as a “Jcc over MOV” by the decoder. That would allow using the branch predictor. Would it be too complex or does the microarchitecture not even allow it?


I think that thread is where I first learned this actually. Didn't remember it until you linked it now, thanks for posting it!




Consider applying for YC's Spring batch! Applications are open till Feb 11.

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

Search: