This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/32306] [4.4/4.5/4.6/4.7 Regression] redundant && || not eliminated
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 12 Jan 2012 13:02:25 +0000
- Subject: [Bug tree-optimization/32306] [4.4/4.5/4.6/4.7 Regression] redundant && || not eliminated
- Auto-submitted: auto-generated
- References: <bug-32306-4@http.gcc.gnu.org/bugzilla/>
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;
}