Re:Optimizations Enabled by -ffast-Math
by throwawaylinux on Wednesday October 20, 2021 @05:33AM
(#28928645)
This test can not be optimized to always true:
Are you confusing it with the opposite scenario:
That test might be optimized out because divide by zero is undefined behavior.
[ Parent
| on HN ]
Re:Optimizations Enabled by -ffast-Math
by colejohnson66 on Wednesday October 20, 2021 @06:56AM
(#28929216)
I probably am confusing them. I don’t program in C or C++, so I’m not aware of all the “gotchas”, and can easily confuse them (as shown here). Not to mention that compilers have been getting more aggressive in optimizing undefined behavior.