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 optimization/14617] [tree-ssa] suboptimal code ('0' <= c && c <= '9') ? c - '0' : 0


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-03-17 16:03 -------
Confirmed, the issue here is a little more complated than the other PR, the problem is fold converts ('0' 
<= c && c <= '9') into "(c - '0') <= 9u"  but it converts the types to unsigned int as it wants to do an 
unsigned comparision.  The other issue since the subtracts is done in two different types it is not 
recognized by either DOM or PRE.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2004-03-17 16:03:23
               date|                            |
   Target Milestone|---                         |tree-ssa


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


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