re PR tree-optimization/49516 (SRA generates memory references into its replacements)
authorMartin Jambor <mjambor@suse.cz>
Fri, 24 Jun 2011 13:27:44 +0000 (15:27 +0200)
committerMartin Jambor <jamborm@gcc.gnu.org>
Fri, 24 Jun 2011 13:27:44 +0000 (15:27 +0200)
commitb807e627309cb88537a127946c22abf31d358c51
tree7d48077753de000e288a642bfe486a7fc7894a5a
parent9a1ea4b90728c19a0141fd9b6ab44a3c5ded5a7c
re PR tree-optimization/49516 (SRA generates memory references into its replacements)

2011-06-24  Martin Jambor  <mjambor@suse.cz>

PR tree-optimizations/49516
* tree-sra.c (sra_modify_assign): Choose the safe path for
aggregate copies if we also did scalar replacements.

* testsuite/g++.dg/tree-ssa/pr49516.C: New test.

From-SVN: r175376
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/tree-ssa/pr49516.C [new file with mode: 0644]
gcc/tree-sra.c