Post #2598473
2023-03-18 17:52 UTC
@slomo@toot.cat The concept is the sync point which guarantees that all side effects are done.
And defining too much takes freedom from the optimizer.
Replies (1)
-
@slomo@toot.cat 2023-03-18 18:03
@ovrim@wien.rocks Yeah I'm aware of the first part. For the second part, do you have an example where it actually allows the optimizer specifically to do a better job? Also note that gcc and clang both seem to guarantee left-to-right or right-to-left, so there doesn't seem to be much opportunity for optimizations lost in practice at least.