* fold-const.c (fold_binary_loc): Remove recently added assert.
authorJeff Law <law@redhat.com>
Tue, 28 Aug 2018 23:09:57 +0000 (17:09 -0600)
committerJeff Law <law@gcc.gnu.org>
Tue, 28 Aug 2018 23:09:57 +0000 (17:09 -0600)
From-SVN: r263936

gcc/ChangeLog
gcc/fold-const.c

index bd3ad1c..8d35df7 100644 (file)
@@ -1,3 +1,7 @@
+2018-08-28  Jeff Law  <law@redhat.com>
+
+       * fold-const.c (fold_binary_loc): Remove recently added assert.
+
 2018-08-28  Joern Rennecke  <joern.rennecke@riscy-ip.com>
 
        * genpreds.c (write_predicate_subfunction): Also add ATTRIBUTE_UNUSED
@@ -78,8 +82,8 @@
        * tree.h: Update documentation of fndecl_built_in_p
        functions.
 
-2018-08-27  Jeff Law  <law@redhat.com>
 
+2018-08-27  Jeff Law  <law@redhat.com>
        PR tree-optimization/87110
        * tree-ssa-dse.c (compute_trims): Handle non-constant
        TYPE_SIZE_UNIT.
index 63e15f0..68bd64f 100644 (file)
@@ -9326,14 +9326,6 @@ fold_binary_loc (location_t loc, enum tree_code code, tree type,
 
   if (kind == tcc_comparison || code == MIN_EXPR || code == MAX_EXPR)
     {
-      if (code == MIN_EXPR || code == MAX_EXPR)
-       {
-         tree typ0 = TREE_TYPE (arg0);
-         tree typ1 = TREE_TYPE (arg1);
-         gcc_assert (TYPE_SIGN (typ0) == TYPE_SIGN (typ1)
-                     && TYPE_MODE (typ0) == TYPE_MODE (typ1));
-       }
-
       STRIP_SIGN_NOPS (arg0);
       STRIP_SIGN_NOPS (arg1);
     }