This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/56902] New: Fails to SLP with mismatched +/- and negatable constants
- 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: Wed, 10 Apr 2013 09:46:44 +0000
- Subject: [Bug tree-optimization/56902] New: Fails to SLP with mismatched +/- and negatable constants
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56902
Bug #: 56902
Summary: Fails to SLP with mismatched +/- and negatable
constants
Classification: Unclassified
Product: gcc
Version: 4.9.0
Status: UNCONFIRMED
Keywords: missed-optimization
Severity: enhancement
Priority: P3
Component: tree-optimization
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: rguenth@gcc.gnu.org
Blocks: 53947
double x[1024], y[1024], z[1024];
void foo (double w)
{
int i;
for (i = 0; i < 1023; i+=2)
{
z[i] = x[i] + 3.;
z[i+1] = x[i+1] + -3.;
}
}
void bar (double w)
{
int i;
for (i = 0; i < 1023; i+=2)
{
z[i] = x[i] + w;
z[i+1] = x[i+1] + -3.;
}
}
void baz (double w)
{
int i;
for (i = 0; i < 1023; i+=2)
{
z[i] = x[i] - w;
z[i+1] = x[i+1] + 3.;
}
}