[Bug middle-end/102464] Miss optimization for (_Float16) sqrtf ((float) f16)

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Nov 10 06:31:47 GMT 2021


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

--- Comment #14 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by hongtao Liu <liuhongt@gcc.gnu.org>:

https://gcc.gnu.org/g:b879d40a17ec0409f1a2cd9ab6134bb28f53eea8

commit r12-5079-gb879d40a17ec0409f1a2cd9ab6134bb28f53eea8
Author: liuhongt <hongtao.liu@intel.com>
Date:   Thu Nov 4 16:05:45 2021 +0800

    Simplify (trunc)MAX/MIN((extend)a, (extend)b) to MAX/MIN(a,b)

    a and b are same type as trunc type and has less precision than
    extend type.

    gcc/ChangeLog:

            PR target/102464
            * match.pd: Simplify (trunc)fmax/fmin((extend)a, (extend)b) to
            MAX/MIN(a,b)

    gcc/testsuite/ChangeLog:

            * gcc.target/i386/pr102464-maxmin.c: New test.


More information about the Gcc-bugs mailing list