News for hackers. Stuff that matters.
Re:Intel i7 loop performance anomaly by pbsd on Tuesday December 03, 2013 @11:30PM (#6845050)
Curiously enough, using separate reads and writes, with appropriate nop padding, seems to do better than any read-modify-write variation I tried.

By the way, read-modify-write is not fused altogether: only the write part is fused, so it generates 2 unfused uops (read, add), plus the fused uop for the write + address generation.

EDIT: Intel's compiler also generates read-modify-write code, but it ends up being slower than both gcc and clang.

Re:Intel i7 loop performance anomaly by nkurz on Wednesday December 04, 2013 @04:54PM (#6850567)
I also have gotten better results with separate read, modify, and write instructions than with combined. I think this is because the separate assembly statements allow for more explicit scheduling.