tree-vect-transform.c (vect_create_epilog_for_reduction): Remove duplicate little...
authorRichard Henderson <rth@redhat.com>
Tue, 28 Jun 2005 05:15:11 +0000 (22:15 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Tue, 28 Jun 2005 05:15:11 +0000 (22:15 -0700)
        * tree-vect-transform.c (vect_create_epilog_for_reduction): Remove
        duplicate little-endian adjustment.

From-SVN: r101372

gcc/ChangeLog
gcc/tree-vect-transform.c

index 76594b77fc27fd6b7bafa425a959407c2c42bf6d..f2d29d05cb359ef3835d467eb5478c52e2a47aca 100644 (file)
@@ -1,3 +1,8 @@
+2005-06-27  Richard Henderson  <rth@redhat.com>
+
+       * tree-vect-transform.c (vect_create_epilog_for_reduction): Remove
+       duplicate little-endian adjustment.
+
 2005-06-28  Kelley Cook  <kcook@gcc.gnu.org>
 
        * doc/include/texinfo.tex: Import from upstream CVS.
index 2de9ce63d2dd871544234c1c0b07a517b7c714d3..cdd3acfbb6832ef31a4d911fdba02866b87f78d3 100644 (file)
@@ -926,17 +926,12 @@ vect_create_epilog_for_reduction (tree vect_def, tree stmt, tree reduction_op,
       int vec_size_in_bits = tree_low_cst (TYPE_SIZE (vectype), 1);
       tree vec_temp;
 
-      /* The result of the reduction is expected to be at the LSB bits
-        of the vector. For big-endian targets this means at the right
-        end of the vector. For little-endian targets this means at the
-        left end of the vector.  */
-
-      if (BITS_BIG_ENDIAN
-         && vec_shr_optab->handlers[mode].insn_code != CODE_FOR_nothing)
+      /* The result of the reduction is expected to be at the least
+        significant bits of the vector.  This is merely convention,
+        as it's the extraction later that really matters, and that
+        is also under our control.  */
+      if (vec_shr_optab->handlers[mode].insn_code != CODE_FOR_nothing)
        shift_code = VEC_RSHIFT_EXPR;
-      else if (!BITS_BIG_ENDIAN
-              && vec_shl_optab->handlers[mode].insn_code != CODE_FOR_nothing)
-       shift_code = VEC_LSHIFT_EXPR;
       else
        have_whole_vector_shift = false;