Commit 2771246a by Alexander Strange Committed by Richard Biener

re PR tree-optimization/36318 (SRA pessimizes struct copies without -Os)

2009-06-05  Alexander Strange <astrange@ithinksw.com>

	PR tree-optimization/36318
	* gcc.dg/tree-ssa/sra-7.c: New test.

From-SVN: r148203
parent 90f06248
2009-06-05 Alexander Strange <astrange@ithinksw.com>
PR tree-optimization/36318
* gcc.dg/tree-ssa/sra-7.c: New test.
2009-06-04 Daniel Franke <franke.daniel@gmail.com>
PR fortran/37203
......
/* { dg-do compile } */
/* { dg-options "-O1 -fdump-tree-optimized" } */
typedef struct { char f[4]; } __attribute__((aligned (4))) s;
void a(s *s1, s *s2)
{
*s1 = *s2;
}
/* Struct copies should not be split into members. */
/* { dg-final { scan-tree-dump "\\\*s1_.\\\(D\\\) = \\\*s2" "optimized"} } */
/* { dg-final { cleanup-tree-dump "optimized" } } */
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