* 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 bd3ad1c4927529571a350e0cf9b9bc63e9940d2d..8d35df7e96a423614966fc7c44050e6fed932179 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 63e15f027fb4f10ffe02f4a3e9031fc68276ec7d..68bd64fcc59f3fc1fdd8a65c8c99cc179acb3e2e 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);
     }