diff options
author | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-03-07 13:31:15 +0000 |
---|---|---|
committer | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-03-07 13:31:15 +0000 |
commit | 3cea8318b1b3fc81b02e2f99c58778b52aaec7b9 (patch) | |
tree | eecbd10c30e2b4be2af99880977dcd420642cad7 /gcc/tree-vect-slp.c | |
parent | ed726cbf61f3e1c3b02128f64c1515cc47445ed1 (diff) | |
download | gcc-3cea8318b1b3fc81b02e2f99c58778b52aaec7b9.tar.gz |
2012-03-07 Richard Guenther <rguenther@suse.de>
* omp-low.c (extract_omp_for_data): Use signed_type_for.
(expand_omp_for_generic): Likewise.
(expand_omp_for_static_nochunk): Likewise.
(expand_omp_for_static_chunk): Likewise.
* tree-vect-stmts.c (vect_gen_perm_mask): Use type_for_mode.
* tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
* tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
Use unsigned_type_for.
(vect_create_cond_for_align_checks): Use signed_type_for.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185042 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-vect-slp.c')
-rw-r--r-- | gcc/tree-vect-slp.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/tree-vect-slp.c b/gcc/tree-vect-slp.c index f21abb38bbf..d20fc9d522c 100644 --- a/gcc/tree-vect-slp.c +++ b/gcc/tree-vect-slp.c @@ -2709,9 +2709,8 @@ vect_transform_slp_perm_load (gimple stmt, VEC (tree, heap) *dr_chain, /* The generic VEC_PERM_EXPR code always uses an integral type of the same size as the vector element being permuted. */ - mask_element_type - = lang_hooks.types.type_for_size - (TREE_INT_CST_LOW (TYPE_SIZE (TREE_TYPE (vectype))), 1); + mask_element_type = lang_hooks.types.type_for_mode + (int_mode_for_mode (TYPE_MODE (TREE_TYPE (vectype))), 1); mask_type = get_vectype_for_scalar_type (mask_element_type); nunits = TYPE_VECTOR_SUBPARTS (vectype); mask = XALLOCAVEC (unsigned char, nunits); |