re PR tree-optimization/92644 (ICE in wide_int_to_tree_1, at tree.c:1530)
authorJakub Jelinek <jakub@redhat.com>
Tue, 26 Nov 2019 08:43:27 +0000 (09:43 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 26 Nov 2019 08:43:27 +0000 (09:43 +0100)
commit89789ec91d14bf5aca8a0a60dcbf7ee6e0bed5c5
treeacef6a0d29e49bb359cac97102d6e46a331cf467
parentf4a74d2786ec812e40cfd0b3b7fa3cbeb2093444
re PR tree-optimization/92644 (ICE in wide_int_to_tree_1, at tree.c:1530)

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.

From-SVN: r278720
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/opt/pr92644.C [new file with mode: 0644]
gcc/tree-ssa-phiopt.c