3 ms·
> I know in my compiler work, I have backed out some optimizations that were allowed by the spec, but broke too many programs. The inconsequential speed improve
by yxhuvud 11y ago
> I know in my compiler work, I have backed out some optimizations that were allowed by the spec, but broke too many programs. The inconsequential speed improvement was just not worth it.
Then perhaps those cases should be reported to the spec commitee to perhaps make the optimization not allowed?
- pjmlp 11y agoThey will never care about it. The very reason C is full of UB is that no compiler vendor wanted to change their compiler dialect when ANSI C was being defined. So every little detail that deviated from the original C compiler was marked as UB.