Commit fec5d58b by Tom de Vries Committed by Tom de Vries

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

2011-05-23  Tom de Vries  <tom@codesourcery.com>

	PR target/45098
	* gcc.target/arm/ivopts-6.c: New test.

From-SVN: r174055
parent 67520c53
2011-05-23 Tom de Vries <tom@codesourcery.com>
PR target/45098
* gcc.target/arm/ivopts-6.c: New test.
2011-05-22 Jakub Jelinek <jakub@redhat.com> 2011-05-22 Jakub Jelinek <jakub@redhat.com>
PR middle-end/49029 PR middle-end/49029
......
/* { dg-do assemble } */
/* { dg-options "-Os -fdump-tree-ivopts -save-temps -marm" } */
void
tr5 (short array[], int n)
{
int x;
if (n > 0)
for (x = 0; x < n; x++)
array[x] = 0;
}
/* { dg-final { scan-tree-dump-times "PHI <" 1 "ivopts"} } */
/* { dg-final { object-size text <= 32 } } */
/* { dg-final { cleanup-tree-dump "ivopts" } } */
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