The idea came from this talk by Alexandrescu, I think https://www.slideshare.net/andreialexandrescu1/three-optimization-tips-for-c … (slide 16) but my example in the book is incorrect/confusing. I cite i++ in a LOOP as the example, but as I actually point out in the second paragraph the issue doesn't really apply to loop indices!
-
-
-
[1/2] Does Alexandrescu have an explanation somewhere? That slide set doesn't really talk about it. I am having a very hard time convincing myself that there is a practical scenario where a[++i] compiles to a pipeline stall but a[i++] does not...
- Show replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.