This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug optimization/15347] [tree-ssa] fold if ("<12ers" + 1 == 0).
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 May 2004 19:41:05 -0000
- Subject: [Bug optimization/15347] [tree-ssa] fold if ("<12ers" + 1 == 0).
- References: <20040509192540.15347.kazu@cs.umass.edu>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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