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

--- Comment #4 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:07852a81f58532c63a57631d7c3757fc6bcea17d

commit r11-710-g07852a81f58532c63a57631d7c3757fc6bcea17d
Author: Richard Biener <rguent...@suse.de>
Date:   Fri May 29 09:25:53 2020 +0200

    tree-optimization/95393 - fold MIN/MAX_EXPR generated by phiopt

    This makes sure to fold generated stmts so they do not survive
    until RTL expansion and cause awkward code generation.

    2020-05-29  Richard Biener <rguent...@suse.de>

            PR tree-optimization/95393
            * tree-ssa-phiopt.c (minmax_replacement): Use gimple_build
            to build the min/max expression so we simplify cases like
            MAX(0, s) immediately.

            * gcc.dg/tree-ssa/phi-opt-21.c: New testcase.
            * g++.dg/vect/slp-pr87105.cc: Adjust.

Reply via email to