Allow divmod on UNITS_PER_WORD vectors
authorRichard Henderson <rth@redhat.com>
Thu, 19 Jul 2012 18:53:26 +0000 (11:53 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Thu, 19 Jul 2012 18:53:26 +0000 (11:53 -0700)
        * tree-vect-patterns.c (vect_recog_divmod_pattern): Do not require
        vectors larger than UNITS_PER_WORD.

From-SVN: r189673

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

index d8b6a4dbc74067e1672dfa4d31a2d903542fc17c..67d72dee45056eeac3a5ff3049a42e08cc5dc91c 100644 (file)
@@ -1,5 +1,8 @@
 2012-07-19  Richard Henderson  <rth@redhat.com>
 
+       * tree-vect-patterns.c (vect_recog_divmod_pattern): Do not require
+       vectors larger than UNITS_PER_WORD.
+
        * expr.c (store_constructor): Initialize icode with CODE_FOR_nothing.
        * tree-vect-stmts.c (vectorizable_operation): Use LAST_INSN_CODE for
        dummy != CODE_FOR_nothing value.
index 05202a8f4c635353094d96239679292ab1de25fd..d990c4fbdaf4aeb4b0b057746fd3df0013cc676d 100644 (file)
@@ -1679,8 +1679,7 @@ vect_recog_divmod_pattern (VEC (gimple, heap) **stmts,
     {
       enum machine_mode vec_mode = TYPE_MODE (vectype);
       int icode = (int) optab_handler (optab, vec_mode);
-      if (icode != CODE_FOR_nothing
-         || GET_MODE_SIZE (vec_mode) == UNITS_PER_WORD)
+      if (icode != CODE_FOR_nothing)
        return NULL;
     }