if-to-switch: consider only integral types
authorMartin Liska <mliska@suse.cz>
Tue, 1 Dec 2020 16:25:36 +0000 (17:25 +0100)
committerMartin Liska <mliska@suse.cz>
Wed, 2 Dec 2020 07:17:25 +0000 (08:17 +0100)
commite4c02ce4ab6fce1148f4025360096f18764deadf
tree835ea2fc283426b901512f46ac22dc83738c3649
parent7da97411b048cdd4e7941b311514f46ea53fe3a2
if-to-switch: consider only integral types

gcc/ChangeLog:

PR tree-optimization/98084
* gimple-if-to-switch.cc (find_conditions): Consider only
integral types.

gcc/testsuite/ChangeLog:

PR tree-optimization/98084
* gcc.dg/tree-ssa/pr98084.c: New test.
gcc/gimple-if-to-switch.cc
gcc/testsuite/gcc.dg/tree-ssa/pr98084.c [new file with mode: 0644]