defaults.h (UNITS_PER_SIMD_WORD): Add scalar mode as argument.
authorH.J. Lu <hongjiu.lu@intel.com>
Thu, 22 May 2008 12:43:16 +0000 (12:43 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Thu, 22 May 2008 12:43:16 +0000 (05:43 -0700)
commit9d3a9de1ee02811717f605b56bb0064cad19a82e
tree63f0f4421ad75511d63828fa645f16face8c9dc8
parentd36f0e7895c96cbbbb6f67a9691c3ee839c73af1
defaults.h (UNITS_PER_SIMD_WORD): Add scalar mode as argument.

2008-05-22  H.J. Lu  <hongjiu.lu@intel.com>

* defaults.h (UNITS_PER_SIMD_WORD): Add scalar mode as argument.
* doc/tm.texi (UNITS_PER_SIMD_WORD): Likewise.

* tree-vect-analyze.c (vect_compute_data_ref_alignment): Replace
UNITS_PER_SIMD_WORD with GET_MODE_SIZE (TYPE_MODE (vectype)).
(vect_update_misalignment_for_peel): Likewise.
(vector_alignment_reachable_p): Likewise.
* tree-vect-transform.c (vectorizable_load): Likewise.
* tree-vectorizer.c (vect_supportable_dr_alignment): Likewise.

* tree-vectorizer.c (get_vectype_for_scalar_type): Pass mode of
scalar_type to UNITS_PER_SIMD_WORD.

* config/arm/arm.h (UNITS_PER_SIMD_WORD): Updated.
* config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
* config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
* config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
* config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.

From-SVN: r135759
gcc/ChangeLog
gcc/config/arm/arm.h
gcc/config/i386/i386.h
gcc/config/mips/mips.h
gcc/config/rs6000/rs6000.h
gcc/config/sparc/sparc.h
gcc/defaults.h
gcc/doc/tm.texi
gcc/tree-vect-analyze.c
gcc/tree-vect-transform.c
gcc/tree-vectorizer.c