This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/30322] ((-i-1) + i) +1) is turned into ~i + (i+1) and never into 0 on the tree level
- From: "roger at eyesopen dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 Jan 2007 20:46:01 -0000
- Subject: [Bug middle-end/30322] ((-i-1) + i) +1) is turned into ~i + (i+1) and never into 0 on the tree level
- References: <bug-30322-10053@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from roger at eyesopen dot com 2007-01-01 20:46 -------
Hi Richard (Happy New Year),
I was wondering whether you could confirm whether the patch I committed fixes
the loop termination conditions in tramp3d? It resolves the example code given
in the description which now reduces to "return 0;", but I'm curious if this is
sufficient to catch the underlying problem or whether we really need a tree
combiner and/or reassociation in order to optimize these loops.
Thanks in advance,
Roger
--
roger at eyesopen dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2007-01-01 20:46:00
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30322