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/15347] [tree-ssa] fold if ("<12ers" + 1 == 0).


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-05-09 19:41 -------
I think the two test cases are not related at all, the second one only needs to fold strchr ("<12ers", '1' ) 
to 1 (which it does when expanding to RTL).  There are two problems with the first testcase, first 
"<12ers" + 1 == 0 is "folded" to "<12ers" == -1 by fold, and but if you add a tempary variable then "< 
12ers" + 1 == 0 is not folded to false.  Confirmed otherwise, the orginal testcase is not done on the 
RTL level but the other two are.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |TREE
   Last reconfirmed|0000-00-00 00:00:00         |2004-05-09 19:41:05
               date|                            |
   Target Milestone|---                         |tree-ssa


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


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