[Bug middle-end/46935] We should recognize expanded switch statement and convert 2 way switch statements into shift & mask test

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Dec 14 11:01:00 GMT 2010


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46935

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

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

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> 2010-12-14 11:01:11 UTC ---
We probably don't want to do such transformation into GIMPLE_SWITCH always,
only if the number of comparisons of the same SSA_NAME is big enough and the
range isn't too big.

expand_switch_using_bit_tests_p can be used if we want to limit it just to the
bittest cases.



More information about the Gcc-bugs mailing list