[Bug c/59424] Optimization issue on min/max
mpolacek at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Dec 9 11:13:00 GMT 2013
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59424
Marek Polacek <mpolacek at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mpolacek at gcc dot gnu.org
--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
I can observe the same behavior with trunk.
For func2, we compute a < b ? a : b first and then call sqrtf on that, while
for func3 we have return a < b ? ABS_EXPR <a> : ABS_EXPR <b>;. Perhaps that's
the reason why ifcvt doesn't optimize this using UNSPEC_IEEE_MIN.
More information about the Gcc-bugs
mailing list