completely_scalarize arrays as well as records
authorAlan Lawrence <alan.lawrence@arm.com>
Thu, 27 Aug 2015 15:40:10 +0000 (15:40 +0000)
committerAlan Lawrence <alalaw01@gcc.gnu.org>
Thu, 27 Aug 2015 15:40:10 +0000 (15:40 +0000)
commit07ad3ec6b12dea788cd36b98eb7d26e353e29766
treed9a9a8082efef568d64c7e0a5ca35ff4db883f4c
parentf2511224db254cfdb1b82ff2e1a95918b3e5348f
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.

gcc/testsuite/:

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

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