https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109378
--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> --- >Wouldn't it be better to rewrite __builtin_sqrt so that these tests are done >inside __builtin_sqrt and not already in the calling context? NO, in fact it is designed this way to better optimize sqrt in the normal case.