From c7580f6e8e6bbc169e9c801844586d11069214ab Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Fri, 31 Jul 2015 07:29:55 +0000 Subject: [PATCH] gimple-fold.c (fold_gimple_assign): Remove folding of GIMPLE_BINARY_RHS. 2015-07-31 Richard Biener * gimple-fold.c (fold_gimple_assign): Remove folding of GIMPLE_BINARY_RHS. From-SVN: r226429 --- gcc/ChangeLog | 5 +++++ gcc/gimple-fold.c | 14 -------------- 2 files changed, 5 insertions(+), 14 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 831aba8f865..e5196f072c1 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2015-07-31 Richard Biener + + * gimple-fold.c (fold_gimple_assign): Remove folding of + GIMPLE_BINARY_RHS. + 2015-07-31 Tom de Vries PR tree-optimization/66846 diff --git a/gcc/gimple-fold.c b/gcc/gimple-fold.c index 94a59676778..86caa8cf96e 100644 --- a/gcc/gimple-fold.c +++ b/gcc/gimple-fold.c @@ -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: -- 2.30.2