completely_scalarize arrays as well as records.
authorAlan Lawrence <alan.lawrence@arm.com>
Fri, 18 Sep 2015 10:55:11 +0000 (10:55 +0000)
committerAlan Lawrence <alalaw01@gcc.gnu.org>
Fri, 18 Sep 2015 10:55:11 +0000 (10:55 +0000)
commitd0f4e7fcdbde6134337c5956a23a740a26a4af66
treecfec84514002ebf8ec3799c9ebf3002f2aa1bcac
parentf5916470c42633933457dbebbbed519cd73ed5b0
completely_scalarize arrays as well as records.

gcc/:

PR tree-optimization/67283
* tree-sra.c (type_consists_of_records_p): Rename to...
(scalarizable_type_p): ...this, add case for ARRAY_TYPE.
(completely_scalarize_record): Rename to...
(completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
(scalarize_elem): New.
(analyze_all_variable_accesses): Follow renamings.

gcc/testsuite/:

* gcc.dg/tree-ssa/sra-15.c: New.
* gcc.dg/tree-ssa/sra-16.c: New.

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