[Bug fortran/86350] Missed optimization with multiplication by zero
amonakov at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Jun 28 16:59:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86350
Alexander Monakov <amonakov at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |amonakov at gcc dot gnu.org
--- Comment #2 from Alexander Monakov <amonakov at gcc dot gnu.org> ---
The multiplication is optimized out under -ffinite-math-only -fno-signed-zeros
(otherwise y can be NaN if bar returns infinity, for example).
Why is it ok to optimize out the call to bar even though it's impure?
More information about the Gcc-bugs
mailing list