|
|
|
|
|
by lelanthran
28 days ago
|
|
> At this point UB and leveraging it for optimization are core parts of the most performant C implementations. I am skeptical that NULL-pointer checks being removed contribute anything more than a rounding error in performance gains in any non-trivial program. |
|
A standard way to eliminate those is to invoke undefined behavior if some condition is not met;
Which then allows elimination of the null check in later code, possibly after inlining some function.