[Bug tree-optimization/77644] missed optimization with sqrt in comparison

rguenth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Sep 21 11:18:00 GMT 2016


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77644

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
Well, even generally sqrt (X) CMP sqrt (Y) -> X CMP Y at least if there are no
NaNs and with -funsafe-math-optimization (because rounding effects could make
sqrt (X) == sqrt (Y) when X != Y).


More information about the Gcc-bugs mailing list