[Bug tree-optimization/96915] ICE in tree-switch-conversion

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Sep 21 11:52:23 GMT 2020


--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Martin Liska <marxin@gcc.gnu.org>:


commit r11-3320-gd726ecd9554a805d4a5e044cb21ca23a7f7ca49f
Author: Martin Liska <mliska@suse.cz>
Date:   Mon Sep 21 12:50:37 2020 +0200

    Fix ICE in tree-switch-conversion.

    With SVE we can end up with:
    switch (POLY_INT_CST [2, 2]) <default: <L2> [INV], case 2: <L3> [INV], case
4: <L3> [INV]>
    which is fine to expand and we can remove the assert.


            PR tree-optimization/96915
            * tree-switch-conversion.c (switch_conversion::expand): Accept
            also integer constants.


            PR tree-optimization/96915
            * gcc.target/aarch64/sve/pr96915.c: New test.

More information about the Gcc-bugs mailing list