This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/30521] "if (i == n) ++i;" or "i += i == n;"?
- 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: 22 Jan 2007 00:29:40 -0000
- Subject: [Bug middle-end/30521] "if (i == n) ++i;" or "i += i == n;"?
- References: <bug-30521-315@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from pinskia at gcc dot gnu dot org 2007-01-22 00:29 -------
CSE is pushing i+=1; down into the conditional which causes ifcvt not to catch
the if(i) i+=1;.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |enhancement
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
GCC target triplet| |i?86-linux
Keywords| |missed-optimization
Last reconfirmed|0000-00-00 00:00:00 |2007-01-22 00:29:40
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30521