[Bug tree-optimization/14792] ((int)b & 1) != 0 is not folded to b & 1 != 0
steven at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sun May 22 15:19:00 GMT 2011
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;
}
More information about the Gcc-bugs
mailing list