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 optimization/15348] [tree-ssa] Convert (x < 0) || (y < 0) into (x | y) < 0.


------- Additional Comments From kazu at cs dot umass dot edu  2004-05-09 19:32 -------
Another one just like above:

void bar (void);

void
foo (int a, int b)
{
  if (a != 0)
    return;
  if (b != 0)
    return;
  bar ();
}

void
baz (int a, int b)
{
  if ((a | b) == 0)
    bar ();
}

See also PR 15241.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15348


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