[Bug tree-optimization/106070] [13 Regression] Wrong code with -O1 since r13-469-g9a53101caadae1b5

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Jun 24 12:50:22 GMT 2022


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


commit r13-1243-gb36a1c964f99758de1f3b169628965d3c3af812b
Author: Richard Biener <rguenther@suse.de>
Date:   Fri Jun 24 13:37:22 2022 +0200

    middle-end/106070 - bogus cond-expr folding

    The following fixes up r13-469-g9a53101caadae1b5 by properly
    implementing what operand_equal_for_comparison_p did.

    2022-06-24  Richard Biener  <rguenther@suse.de>

            PR middle-end/106070
            * match.pd (a != b ? a : b): Fix translation of

            * gcc.dg/torture/pr106070.c: New testcase.

More information about the Gcc-bugs mailing list