tree-sra.c (struct access): Rename total_scalarization to grp_total_scalarization
authorMartin Jambor <mjambor@suse.cz>
Thu, 30 Jun 2011 21:54:29 +0000 (23:54 +0200)
committerMartin Jambor <jamborm@gcc.gnu.org>
Thu, 30 Jun 2011 21:54:29 +0000 (23:54 +0200)
commit1ac93f108375d63eb373fbfcd59634202d1b50b7
treee45709faaffddb5adbaa67c4980f88fdc69b3932
parentca1085f03cc717057e7831e1ca0b98fc44c78eb8
tree-sra.c (struct access): Rename total_scalarization to grp_total_scalarization

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

* tree-sra.c (struct access): Rename total_scalarization to
grp_total_scalarization
(completely_scalarize_var): New function.
(sort_and_splice_var_accesses): Set total_scalarization in the
representative access.
(analyze_access_subtree): Propagate total scalarization accross the
tree, no holes in totally scalarized trees, simplify coverage
computation.
(analyze_all_variable_accesses): Call completely_scalarize_var instead
of completely_scalarize_record.

* testsuite/gcc.dg/tree-ssa/sra-12.c: New test.

From-SVN: r175733
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/sra-12.c [new file with mode: 0644]
gcc/tree-sra.c