Commit 626f4dd8 by Richard Guenther Committed by Richard Biener

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
parent 161031e3
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
PR tree-optimization/30911
PR tree-optimization/34793
/* { 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" } } */
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