tree-vectorizer.c (get_vec_alignment_for_decl): New static function.
authorPrathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
Fri, 20 May 2016 09:35:46 +0000 (09:35 +0000)
committerPrathamesh Kulkarni <prathamesh3492@gcc.gnu.org>
Fri, 20 May 2016 09:35:46 +0000 (09:35 +0000)
commit550fa0931855ee93f340dee752a8bb9b1a70cbc5
treee25fe64ebb73d39a0d17086f38d34874b3943778
parent483c642948802336899b14fa57b2e76c760c3c36
tree-vectorizer.c (get_vec_alignment_for_decl): New static function.

2016-05-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>

* tree-vectorizer.c (get_vec_alignment_for_decl): New static function.
(get_vec_alignment_for_array_decl): Likewise.
(get_vec_alignment_for_record_decl): Likewise.
(increase_alignment::execute): Move code to find alignment to
get_vec_alignment_for_array_decl and call get_vec_alignment_for_decl.
(type_align_map): New hash_map.

testsuite/
* gcc.dg/vect/section-anchors-vect-70.c: New test-case.
* gcc.dg/vect/section-anchors-vect-71.c: Likewise.
* gcc.dg/vect/section-anchors-vect-72.c: Likewise.

From-SVN: r236502
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/tree-vectorizer.c