This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/14792] ((int)b & 1) != 0 is not folded to b & 1 != 0
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 12 Feb 2012 09:21:00 +0000
- Subject: [Bug tree-optimization/14792] ((int)b & 1) != 0 is not folded to b & 1 != 0
- Auto-submitted: auto-generated
- References: <bug-14792-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14792
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
AssignedTo|unassigned at gcc dot |pinskia at gcc dot gnu.org
|gnu.org |
--- Comment #10 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-02-12 09:21:00 UTC ---
This is fixed on the trunk as we fold ((int)a) & 1 into (int)(a&1) in forwprop
though that causes other issues so I am disabling that folding and am going to
implement the folding of (((int)a) & 1) != 0 in forwprop.