This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/23666] Fold does not reduce C - ~a into a + (C+1)
- 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: 26 Nov 2005 21:43:13 -0000
- Subject: [Bug middle-end/23666] Fold does not reduce C - ~a into a + (C+1)
- References: <bug-23666-6528@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from pinskia at gcc dot gnu dot org 2005-11-26 21:43 -------
The problem here is my fault, slightly. Fold is converting -(~a) in the
NEGATE_EXPR but not in the generic functions to do the negation. I will do the
patch for this one. (I am saying that -(~a) is more complex than a+1 which is
true).
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |pinskia at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23666