This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/14792] ((int)b & 1) != 0 is not folded to b & 1 != 0


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;

}


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]