2012-09-23 Marc Glisse <marc.glisse@inria.fr>
authorglisse <glisse@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 23 Sep 2012 19:58:28 +0000 (19:58 +0000)
committerglisse <glisse@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 23 Sep 2012 19:58:28 +0000 (19:58 +0000)
* expr.c (do_store_flag): Remove duplicated code.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@191653 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/expr.c

index e650f90..9aa6e8e 100644 (file)
@@ -1,3 +1,7 @@
+2012-09-23  Marc Glisse  <marc.glisse@inria.fr>
+
+       * expr.c (do_store_flag): Remove duplicated code.
+
 2012-09-22  Segher Boessenkool  <segher@kernel.crashing.org>
 
        * config/rs6000/predicates.md (altivec_register_operand,
index 7624448..9158b9f 100644 (file)
@@ -10687,17 +10687,6 @@ do_store_flag (sepops ops, rtx target, enum machine_mode mode)
       return expand_vec_cond_expr (ops->type, ifexp, if_true, if_false, target);
     }
 
-  /* For vector typed comparisons emit code to generate the desired
-     all-ones or all-zeros mask.  Conveniently use the VEC_COND_EXPR
-     expander for this.  */
-  if (TREE_CODE (ops->type) == VECTOR_TYPE)
-    {
-      tree ifexp = build2 (ops->code, ops->type, arg0, arg1);
-      tree if_true = constant_boolean_node (true, ops->type);
-      tree if_false = constant_boolean_node (false, ops->type);
-      return expand_vec_cond_expr (ops->type, ifexp, if_true, if_false, target);
-    }
-
   /* Get the rtx comparison code to use.  We know that EXP is a comparison
      operation of some type.  Some comparisons against 1 and -1 can be
      converted to comparisons with zero.  Do so here so that the tests