| ▲ | masklinn 9 hours ago | |||||||
> That doesn’t mean they should. Nobody’s stopping you from using non-optimising compilers, regardless of the strawmen you assert. | ||||||||
| ▲ | foltik 9 hours ago | parent [-] | |||||||
As if treating uninitialized reads as opaque somehow precludes all optimizations? There’s a million more sensible things that the compiler could do here besides the hilariously bad codegen you see in the grandparent and sibling comments. All I’ve heard amounts to “but it’s allowed by the spec.” I’m not arguing against that. I’m saying a spec that incentivizes this nonsense is poorly designed. | ||||||||
| ||||||||