> The optimization can be useful, it doesn't have to be for user written > y = 1 / x; but can appear through inlining or some other optimizations, e.g. > jump threading and suddenly we have constant 1 in some bb, if it a never > executed at runtime block, it will be likely shorter because of the > optimization, if it is not, then it will be cheaper.
The hundreds of people having worked on GCC for the past 30 years must have been stupid then, how come have they missed such a great optimization? ;-) -- Eric Botcazou