mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-22 21:31:19 +08:00
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:
parent
161031e3ae
commit
626f4dd8f5
@ -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
|
||||
|
21
gcc/testsuite/gcc.dg/tree-ssa/loop-34.c
Normal file
21
gcc/testsuite/gcc.dg/tree-ssa/loop-34.c
Normal 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" } } */
|
Loading…
x
Reference in New Issue
Block a user