https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92644
--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Fri Dec 20 16:58:07 2019 New Revision: 279652 URL: https://gcc.gnu.org/viewcvs?rev=279652&root=gcc&view=rev Log: Backported from mainline 2019-11-26 Jakub Jelinek <ja...@redhat.com> PR tree-optimization/92644 * tree-ssa-phiopt.c (minmax_replacement): Add INTEGRAL_TYPE_P check next to INTEGER_CST checks. * g++.dg/opt/pr92644.C: New test. Added: branches/gcc-9-branch/gcc/testsuite/g++.dg/opt/pr92644.C Modified: branches/gcc-9-branch/gcc/ChangeLog branches/gcc-9-branch/gcc/testsuite/ChangeLog branches/gcc-9-branch/gcc/tree-ssa-phiopt.c