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

--- Comment #6 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Richard Biener <rgue...@gcc.gnu.org>:

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

commit r14-3354-ge10cb804e658dbd1e9d58f528f3985362e4e72e7
Author: Richard Biener <rguent...@suse.de>
Date:   Mon Aug 21 11:07:18 2023 +0200

    tree-optimization/111082 - bogus promoted min

    vectorize_slp_instance_root_stmt promotes operations with undefined
    overflow to unsigned arithmetic but fails to consider operations
    that do not overflow like MIN which it turned into MIN with wrong
    signedness and in the case of the PR an unsupported operation.
    The following rectifies this.

            PR tree-optimization/111082
            * tree-vect-slp.cc (vectorize_slp_instance_root_stmt): Only
            pun operations that can overflow.

            * gcc.dg/pr111082.c: New testcase.

Reply via email to