Commit 1c8d19bb by Richard Guenther Committed by Richard Biener

re PR tree-optimization/13761 ([tree-ssa] component refs to the same struct should not alias)

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

	PR tree-optimization/13761
	* gcc.dg/tree-ssa/ssa-lim-3.c: New testcase.

From-SVN: r133224
parent 896c8b96
2008-03-14 Richard Guenther <rguenther@suse.de> 2008-03-14 Richard Guenther <rguenther@suse.de>
PR tree-optimization/13761
* gcc.dg/tree-ssa/ssa-lim-3.c: New testcase.
2008-03-14 Richard Guenther <rguenther@suse.de>
PR tree-optimization/34172 PR tree-optimization/34172
* gcc.dg/tree-ssa/ssa-fre-11.c: New testcase. * gcc.dg/tree-ssa/ssa-fre-11.c: New testcase.
* gcc.dg/tree-ssa/ssa-fre-12.c: Likewise. * gcc.dg/tree-ssa/ssa-fre-12.c: Likewise.
/* { dg-do compile } */
/* { dg-options "-O -fdump-tree-lim-details -fdump-tree-optimized" } */
struct { int x; int y; } global;
void foo(int n)
{
int i;
for ( i=0; i<n; i++)
global.y += global.x*global.x;
}
/* { dg-final { scan-tree-dump "Executing store motion of global.y" "lim" } } */
/* { dg-final { scan-tree-dump "Moving statement.*global.x.*out of loop 1" "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