https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105740

--- Comment #7 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Xiong Hu Luo <luo...@gcc.gnu.org>:

https://gcc.gnu.org/g:57424087e82db140c06d4ea73f9700d5291c5bc2

commit r13-1184-g57424087e82db140c06d4ea73f9700d5291c5bc2
Author: Xionghu Luo <xionghu...@tencent.com>
Date:   Thu Jun 9 15:46:30 2022 +0800

    if-to-switch: Don't skip the first condition bb when find_conditions in
if-to-switch [PR105740]

    The if condition is at last of first bb, so side effect statement in first
BB
    doesn't matter, then the first if condition could also be folded to switch
    table.

    gcc/ChangeLog:

            PR target/105740
            * gimple-if-to-switch.cc (find_conditions): Don't skip the first
            condition bb.

    gcc/testsuite/ChangeLog:

            PR target/105740
            * gcc.dg/tree-ssa/if-to-switch-11.c: New test.

    Signed-off-by: Xionghu Luo <xionghu...@tencent.com>

Reply via email to