News for hackers. Stuff that matters.
Re:When Optimising Code, Measure by reitzensteinm on Tuesday January 16, 2024 @07:17AM (#39012473)
Not sure why you're being downvoted, because you're right.

To back up parent's point, if you compile the code and the resulting assembly is a direct translation, renaming will break the dependency and the CPU will execute the instructions in parallel. Write after read hazard is the applicable section:

https://en.wikipedia.org/wiki/Register_renaming

Re:When Optimising Code, Measure by gpderetta on Tuesday January 16, 2024 @08:00AM (#39012797)
[off topic, but I expect that some amount of downvotes are people misclicking; I know that I found myself correcting many of my own, I wonder how many I don't catch]