re PR rtl-optimization/19580 (missed load/store motion)

2008-03-28  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/19580
	* gcc.dg/tree-ssa/loop-34.c: New testcase.

From-SVN: r133683
This commit is contained in:
Richard Guenther 2008-03-28 13:44:41 +00:00 committed by Richard Biener
parent 161031e3ae
commit 626f4dd8f5
2 changed files with 26 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2008-03-28 Richard Guenther <rguenther@suse.de>
PR tree-optimization/19580
* gcc.dg/tree-ssa/loop-34.c: New testcase.
2008-03-28 Richard Guenther <rguenther@suse.de>
PR tree-optimization/30317

View File

@ -0,0 +1,21 @@
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-lim-details" } */
int r[6];
void f (int n)
{
while (-- n)
{
r [0] += r [5];
r [1] += r [0];
r [2] += r [1];
r [3] += r [2];
r [4] += r [3];
r [5] += r [4];
}
}
/* { dg-final { scan-tree-dump-times "Executing store motion of r" 6 "lim" } } */
/* { dg-final { cleanup-tree-dump "lim" } } */