Commit 8158c657 by Uros Bizjak

* gcc.target/i386/pr55845.c (foo): Remove unneeded initialization.

From-SVN: r195029
parent c6d851b9
...@@ -12,8 +12,10 @@ foo (int size, double *y, double *x) ...@@ -12,8 +12,10 @@ foo (int size, double *y, double *x)
{ {
double sum = 0.0; double sum = 0.0;
int i; int i;
for (i = 0, sum = 0.; i < size; i++)
for (i = 0; i < size; i++)
sum += y[i] * x[i]; sum += y[i] * x[i];
return sum; return sum;
} }
...@@ -21,8 +23,7 @@ static void ...@@ -21,8 +23,7 @@ static void
__attribute__ ((noinline)) __attribute__ ((noinline))
avx_test () avx_test ()
{ {
double x[N]; double x[N], y[N];
double y[N];
double s; double s;
int i; int i;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment