This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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

Jan Hubicka <hubicka at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2010.12.14 14:14:18
     Ever Confirmed|0                           |1

--- Comment #3 from Jan Hubicka <hubicka at gcc dot gnu.org> 2010-12-14 14:14:18 UTC ---
I would do the conversion always when we can turn more than one if into signle
switch.  Doing so reduces the amount of IL and makes program easier to
analyze&opotimize. We should rely on switch expansion code doing the right
thing producing back the ifs when profitable.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]