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/32306] [4.4/4.5/4.6/4.7 Regression] redundant && || not eliminated


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

--- Comment #19 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-01-12 13:02:25 UTC ---
Shorter testcase, compilable and to the point.  We are not able to CSE
the b1 && ... && b8 sequence because we produce control-flow for it
during gimplification.

void bar (short *array,
          short b1, short b2, short b3, short b4,
          short b5, short b6, short b7, short b8)
{
  array[0] = b1 && b2 && b3 && b4 && b5 && b6 && b7 && b8;
  array[1] = b1 && b2 && b3 && b4 && b5 && b6 && b7 && b8;
}


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