gimple-fold.c (fold_gimple_assign): Remove folding of GIMPLE_BINARY_RHS.
authorRichard Biener <rguenther@suse.de>
Fri, 31 Jul 2015 07:29:55 +0000 (07:29 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 31 Jul 2015 07:29:55 +0000 (07:29 +0000)
2015-07-31  Richard Biener  <rguenther@suse.de>

* gimple-fold.c (fold_gimple_assign): Remove folding of
GIMPLE_BINARY_RHS.

From-SVN: r226429

gcc/ChangeLog
gcc/gimple-fold.c

index 831aba8f865afeb340bdffe4c2d7fb71b77cd68f..e5196f072c19795398065f17a674c8888f821539 100644 (file)
@@ -1,3 +1,8 @@
+2015-07-31  Richard Biener  <rguenther@suse.de>
+
+       * gimple-fold.c (fold_gimple_assign): Remove folding of
+       GIMPLE_BINARY_RHS.
+
 2015-07-31  Tom de Vries  <tom@codesourcery.com>
 
        PR tree-optimization/66846
index 94a5967677815d3311ba7aeb2cc26f9a8892ef9c..86caa8cf96e54f91f957137e1e72eed1d423cab0 100644 (file)
@@ -413,20 +413,6 @@ fold_gimple_assign (gimple_stmt_iterator *si)
       break;
 
     case GIMPLE_BINARY_RHS:
-      if (TREE_CODE_CLASS (subcode) != tcc_comparison)
-       {
-         result = fold_binary_loc (loc, subcode,
-                                   TREE_TYPE (gimple_assign_lhs (stmt)),
-                                   gimple_assign_rhs1 (stmt),
-                                   gimple_assign_rhs2 (stmt));
-
-         if (result)
-           {
-             STRIP_USELESS_TYPE_CONVERSION (result);
-             if (valid_gimple_rhs_p (result))
-               return result;
-           }
-       }
       break;
 
     case GIMPLE_TERNARY_RHS: