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

--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The trunk branch has been updated by Andrew Pinski <pins...@gcc.gnu.org>:

https://gcc.gnu.org/g:8fdf712a38422952bbcde7e22eabcf821e6676b3

commit r14-3855-g8fdf712a38422952bbcde7e22eabcf821e6676b3
Author: Andrew Pinski <apin...@marvell.com>
Date:   Mon Sep 11 08:05:10 2023 -0700

    MATCH: [PR111348] add missing :c to cmp in the `(a CMP b) ? minmax<a, c> :
minmax<b, c>` pattern

    When I added this pattern in r14-337-gc43819a9b4cd, I had missed the :c on
the cmp
    part of the pattern meaning there might be some missing optimizations
happening.
    The testcase shows an example of the missed optmization.

    Committed as obvious after a bootstrap/test on x86_64-linux-gnu.

            PR tree-optimization/111348

    gcc/ChangeLog:

            * match.pd (`(a CMP b) ? minmax<a, c> : minmax<b, c>`): Add :c on
            the cmp part of the pattern.

    gcc/testsuite/ChangeLog:

            * gcc.dg/tree-ssa/minmax-26.c: New test.

Reply via email to