https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88702
--- Comment #14 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Martin Liska <mar...@gcc.gnu.org>: https://gcc.gnu.org/g:c961e94901eb793b1a18d431a1acf7f682eaf04f commit r11-5642-gc961e94901eb793b1a18d431a1acf7f682eaf04f Author: Martin Liska <mli...@suse.cz> Date: Tue Dec 1 12:18:46 2020 +0100 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.