]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/doc/tm.texi.in
target.def (vector_alignment): New target hook.
authorUlrich Weigand <ulrich.weigand@linaro.org>
Mon, 30 Jul 2012 14:39:32 +0000 (14:39 +0000)
committerUlrich Weigand <uweigand@gcc.gnu.org>
Mon, 30 Jul 2012 14:39:32 +0000 (14:39 +0000)
commit5aea1e76a80c9c5770692ece18100b9383cbab3a
treedc5799dbc1af4d3d79e2dbe5b4f3915b5afa6052
parent4c340b5dfa736102f1fc50f3a4f2ba685708c7ff
target.def (vector_alignment): New target hook.

ChangeLog:

* target.def (vector_alignment): New target hook.
* doc/tm.texi.in (TARGET_VECTOR_ALIGNMENT): Document new hook.
* doc/tm.texi: Regenerate.
* targhooks.c (default_vector_alignment): New function.
* targhooks.h (default_vector_alignment): Add prototype.
* stor-layout.c (layout_type): Use targetm.vector_alignment.
* config/arm/arm.c (arm_vector_alignment): New function.
(TARGET_VECTOR_ALIGNMENT): Define.

* tree-vect-data-refs.c (vect_update_misalignment_for_peel): Use
vector type alignment instead of size.
* tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Use
element type size directly instead of computing it from alignment.
Fix variable naming and comment.

testsuite/ChangeLog:

* lib/target-supports.exp
(check_effective_target_vect_natural_alignment): New function.
* gcc.dg/align-2.c: Only run on targets with natural alignment
of vector types.
* gcc.dg/vect/slp-25.c: Adjust tests for targets without natural
alignment of vector types.

Co-Authored-By: Richard Earnshaw <rearnsha@arm.com>
From-SVN: r189974
14 files changed:
gcc/ChangeLog
gcc/config/arm/arm.c
gcc/doc/tm.texi
gcc/doc/tm.texi.in
gcc/stor-layout.c
gcc/target.def
gcc/targhooks.c
gcc/targhooks.h
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/align-2.c
gcc/testsuite/gcc.dg/vect/slp-25.c
gcc/testsuite/lib/target-supports.exp
gcc/tree-vect-data-refs.c
gcc/tree-vect-loop-manip.c