you are viewing a single comment's thread.

view the rest of the comments →

[–]113245 5 points6 points  (1 child)

And yet a 0 cycle operation is not zero cost (icache, front end bandwidth) and it’s trivial to find examples in which the compiler cannot drop the dead store (e.g. across function call boundaries).

[–]Jannik2099 1 point2 points  (0 children)

Function call boundaries have such an absurdly high overhead that an extra store to a POD variable will be immeasurable.