https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98182
--- Comment #3 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:f7251a2c103bc48775cb9726a4bebeaebde96684 commit r11-5863-gf7251a2c103bc48775cb9726a4bebeaebde96684 Author: Martin Liska <mli...@suse.cz> Date: Tue Dec 8 13:18:37 2020 +0100 if-to-switch: fix matching of negative conditions gcc/ChangeLog: PR tree-optimization/98182 * gimple-if-to-switch.cc (pass_if_to_switch::execute): Request chain linkage through false edges only. gcc/testsuite/ChangeLog: PR tree-optimization/98182 * gcc.dg/tree-ssa/if-to-switch-10.c: New test. * gcc.dg/tree-ssa/pr98182.c: New test.