Commit 2a728446 by Tom de Vries Committed by Tom de Vries

re PR middle-end/45098 (Missed induction variable optimization)

2011-06-16  Tom de Vries  <tom@codesourcery.com>

	PR target/45098
	* gcc.target/arm/ivopts-3.c: Update test.
	* gcc.target/arm/ivopts-5.c: Same.

From-SVN: r175106
parent 0703f020
2011-06-16 Tom de Vries <tom@codesourcery.com>
PR target/45098
* gcc.target/arm/ivopts-3.c: Update test.
* gcc.target/arm/ivopts-5.c: Same.
2011-06-16 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org> 2011-06-16 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
Revert Revert
......
...@@ -8,14 +8,8 @@ tr3 (short array[], unsigned int n) ...@@ -8,14 +8,8 @@ tr3 (short array[], unsigned int n)
{ {
int sum = 0; int sum = 0;
unsigned int x; unsigned int x;
x = 0; for (x = 0; x < n; ++x)
while (1) sum += foo2 (&array[x]);
{
sum += foo2 (&array[x]);
if (!(x < n))
break;
x++;
}
return sum; return sum;
} }
......
...@@ -8,14 +8,8 @@ tr1 (int array[], unsigned int n) ...@@ -8,14 +8,8 @@ tr1 (int array[], unsigned int n)
{ {
int sum = 0; int sum = 0;
unsigned int x; unsigned int x;
x = 0; for (x = 0; x < n; ++x)
while (1) sum += foo (&array[x]);
{
sum += foo (&array[x]);
if (!(x < n))
break;
x++;
}
return sum; return sum;
} }
......
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