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: "steven at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 22 May 2011 15:14:18 +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
Steven Bosscher <steven at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed|2009-04-22 23:16:25 |2011-05-22 16:50:25
Known to fail| |4.6.0
--- Comment #9 from Steven Bosscher <steven at gcc dot gnu.org> 2011-05-22 14:51:03 UTC ---
t.c.143t.optimized from gcc 4.6:
;; Function foo (foo)
foo (unsigned int a)
{
int b;
int D.1983;
<bb 2>:
b_2 = (int) a_1(D);
D.1983_3 = b_2 & 1;
if (D.1983_3 != 0)
goto <bb 3>;
else
goto <bb 4>;
<bb 3>:
bar (); [tail call]
<bb 4>:
return;
}