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 middle-end/30322] ((-i-1) + i) +1) is turned into ~i + (i+1) and never into 0 on the tree level



------- 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


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