aboutsummaryrefslogtreecommitdiff
path: root/gcc/expr.c
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2020-12-01 12:18:46 +0100
committerMartin Liska <mliska@suse.cz>2020-12-02 08:18:18 +0100
commitc961e94901eb793b1a18d431a1acf7f682eaf04f (patch)
treec29fc24b169c2851cc98e6dab952e02a116fd681 /gcc/expr.c
parente4c02ce4ab6fce1148f4025360096f18764deadf (diff)
downloadgcc-c961e94901eb793b1a18d431a1acf7f682eaf04f.zip
gcc-c961e94901eb793b1a18d431a1acf7f682eaf04f.tar.gz
gcc-c961e94901eb793b1a18d431a1acf7f682eaf04f.tar.bz2
if-to-switch: Support chain with 2 BBs.
As seen in the test-case, even 2 BBs can handle interesting cases covered by a jump table or a bit-test. gcc/ChangeLog: PR tree-optimization/88702 * gimple-if-to-switch.cc (pass_if_to_switch::execute): Require at least 2 BBs. * gimple-if-to-switch.cc (find_conditions): Require equal precision for low and high of a range. gcc/testsuite/ChangeLog: PR tree-optimization/88702 * gcc.dg/tree-ssa/if-to-switch-9.c: New test.
Diffstat (limited to 'gcc/expr.c')
0 files changed, 0 insertions, 0 deletions