https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98455
--- Comment #4 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:7875e8dc831f30eec7203e090a209efe4c01a27d commit r11-6635-g7875e8dc831f30eec7203e090a209efe4c01a27d Author: Martin Liska <mli...@suse.cz> Date: Tue Jan 12 13:40:44 2021 +0100 if-to-switch: fix also virtual phis gcc/ChangeLog: PR tree-optimization/98455 * gimple-if-to-switch.cc (condition_info::record_phi_mapping): Record also virtual PHIs. (pass_if_to_switch::execute): Return TODO_cleanup_cfg only conditionally. gcc/testsuite/ChangeLog: PR tree-optimization/98455 * gcc.dg/tree-ssa/pr98455.c: New test.