[Bug target/87913] max(n, 1) code generation

rguenth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Nov 8 08:03:00 GMT 2018


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

--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> ---
Author: rguenth
Date: Thu Nov  8 08:03:12 2018
New Revision: 265909

URL: https://gcc.gnu.org/viewcvs?rev=265909&root=gcc&view=rev
Log:
2018-11-08  Richard Biener  <rguenther@suse.de>

        PR tree-optimization/87913
        * tree-ssa-phiopt.c (minmax_replacement): Turn EQ/NE compares
        of extreme values to ordered comparisons.

        * gcc.dg/tree-ssa/phi-opt-20.c: New testcase.

Added:
    trunk/gcc/testsuite/gcc.dg/tree-ssa/phi-opt-20.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-ssa-phiopt.c


More information about the Gcc-bugs mailing list