News for hackers. Stuff that matters.
Re:Hello from a libc-free world by Someone on Wednesday October 26, 2011 @02:27PM (#3159806)
http://stackoverflow.com/questions/1135679/does-using-xor-re... gives more answers than you want, especiallly if you read that Intel PDF.

It is not 100% a "smaller is better" choice. You also will want to check whether an instruction depends on an earlier one (for example, the XOR technically needs to read the register; if the CPU does not know that that is not actually the case, a self-XOR may introduce pipeline bubbles), what instruction unit (if any) it uses, and whether you want to preserve flags.

There are no comments on this comment yet.