diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 29efeebeca2..75da5268e81 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2012-11-27 Richard Biener + + * gimple-fold.c (fold_stmt_1): Remove unnecessary code. + 2012-11-27 Bin Cheng * config/arm/arm.c (thumb1_reorg): New function. diff --git a/gcc/gimple-fold.c b/gcc/gimple-fold.c index 251be2485d4..6c4a46fb10b 100644 --- a/gcc/gimple-fold.c +++ b/gcc/gimple-fold.c @@ -1282,14 +1282,6 @@ fold_stmt_1 (gimple_stmt_iterator *gsi, bool inplace) default:; } - /* If stmt folds into nothing and it was the last stmt in a bb, - don't call gsi_stmt. */ - if (gsi_end_p (*gsi)) - { - gcc_assert (next_stmt == NULL); - return changed; - } - stmt = gsi_stmt (*gsi); /* Fold *& on the lhs. Don't do this if stmt folded into nothing,