[Bug tree-optimization/94779] Bad optimization of simple switch

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed May 6 15:08:10 GMT 2020


Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Martin, I think switchconv pass should use get_range_info and completely ignore
labels with values outside of the range of the switch SSA_NAME range (including
the default label if all values in the SSA_NAME range have explicit case
That wouldn't change everything in this report, e.g. the #c0 one I think
doesn't even make switchconv as it is lowered earlier.

More information about the Gcc-bugs mailing list