[Bug optimization/15347] [tree-ssa] fold if ("<12ers" + 1 == 0).
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Mon May 10 17:40:00 GMT 2004
------- 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
More information about the Gcc-bugs
mailing list