Hacker News new | ask | show | jobs
by fooker 1859 days ago
It’s not useless. The assumption is not false if the program doesn’t have undefined behavior. The assumption allows the code to be a few times faster. To disallow this assumption would inhibit these optimizations.
1 comments

a) the assumption is not false if it is not false! b) the speedup is not shown anywhere
The speedup is more or less the difference between O1 and O3 optimization levels.