]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
i386.c (ix86_vectorize_builtin_conversion): Never vectorize if not TARGET_SSE2.
authorChris Demetriou <cgd@google.com>
Tue, 1 Sep 2009 16:46:10 +0000 (09:46 -0700)
committerUros Bizjak <uros@gcc.gnu.org>
Tue, 1 Sep 2009 16:46:10 +0000 (18:46 +0200)
* config/i386/i386.c (ix86_vectorize_builtin_conversion): Never
vectorize if not TARGET_SSE2.

From-SVN: r151276

gcc/ChangeLog
gcc/config/i386/i386.c

index 4e00ce5fa2a42653e50120fd62f58d60c80e3e40..0b7bdc3cdb1e4ec67f859781981cac4d14602e78 100644 (file)
@@ -1,3 +1,8 @@
+2009-08-31  Chris Demetriou  <cgd@google.com>
+
+       * config/i386/i386.c (ix86_vectorize_builtin_conversion): Never
+       vectorize if not TARGET_SSE2.
+
 2009-08-28  Uros Bizjak  <ubizjak@gmail.com>
 
        * global.c (global_alloc): Do not calculate bitmatrix percentages
index a759028b1c8a75235a9688144d80fbaa3b9b7e60..d9f9b8cd3e440c549601123da37b3bfc0cd1ac4a 100644 (file)
@@ -21529,7 +21529,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
       /* There are only conversions from/to signed integers.  */
       || TYPE_UNSIGNED (TREE_TYPE (type)))
     return NULL_TREE;