From 5fa162c0d1065408634dd5df4a58407f35109b4d Mon Sep 17 00:00:00 2001 From: Chris Demetriou Date: Tue, 1 Sep 2009 09:08:20 +0200 Subject: [PATCH] i386.c (ix86_vectorize_builtin_conversion): Never vectorize if not TARGET_SSE2. * config/i386/i386.c (ix86_vectorize_builtin_conversion): Never vectorize if not TARGET_SSE2. From-SVN: r151259 --- gcc/ChangeLog | 14 ++++++++++---- gcc/config/i386/i386.c | 2 +- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9ef3dc2..61edf90 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2009-08-31 Chris Demetriou + + * config/i386/i386.c (ix86_vectorize_builtin_conversion): Never + vectorize if not TARGET_SSE2. + 2009-08-31 DJ Delorie * config/mep/mep.h (FUNCTION_ARG_REGNO_P): Exclude coprocessor @@ -51,7 +56,8 @@ * config/mep/mep.c (machine_function): Add frame_locked flag. Set it once we start generating the prologue or epilogue. - (mep_call_saves_register): If the frame is locked, re-use cached values. + (mep_call_saves_register): If the frame is locked, re-use + cached values. (mep_assign_save_slots): New, broken out from mep_expand_prologue. (mep_expand_prologue): Call it. (mep_expand_epilogue): Likewise. @@ -465,8 +471,8 @@ 2009-08-26 Richard Guenther - * tree-ssa-structalias.c (create_variable_info_for): Remove - strange whole-program condition, prepare to be called for non-globals. + * tree-ssa-structalias.c (create_variable_info_for): Remove strange + whole-program condition, prepare to be called for non-globals. (intra_create_variable_infos): For restrict qualified DECL_BY_REFERENCE params build a representative with known type and track its fields. @@ -1158,7 +1164,7 @@ 2009-08-24 Kai Tietz PR/40786 - * c-format.c (format_wanted_type): Add new member scalar_identity_flag. + * c-format.c (format_wanted_type): Add new member scalar_identity_flag. (check_format_info_main): Use scalar_identify_flag. (check_format_types): Check for scalar size identity if scalar_identify_flag is set. diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 0316b36..dfa35f1 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -24845,7 +24845,7 @@ ix86_veclibabi_acml (enum built_in_function fn, tree type_out, tree type_in) static tree ix86_vectorize_builtin_conversion (unsigned int code, tree type) { - if (TREE_CODE (type) != VECTOR_TYPE) + if (! (TARGET_SSE2 && TREE_CODE (type) == VECTOR_TYPE)) return NULL_TREE; switch (code) -- 2.7.4