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
This commit is contained in:
Tom de Vries 2011-05-23 07:00:02 +00:00 committed by Tom de Vries
parent 67520c53ed
commit fec5d58b1f
2 changed files with 20 additions and 0 deletions

View File

@ -1,3 +1,8 @@
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>
PR middle-end/49029

View File

@ -0,0 +1,15 @@
/* { 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" } } */