diff options
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/gimple-fold.c | 8 |
2 files changed, 4 insertions, 8 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 29efeeb..75da526 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2012-11-27 Richard Biener <rguenther@suse.de> + + * gimple-fold.c (fold_stmt_1): Remove unnecessary code. + 2012-11-27 Bin Cheng <bin.cheng@arm.com> * config/arm/arm.c (thumb1_reorg): New function. diff --git a/gcc/gimple-fold.c b/gcc/gimple-fold.c index 251be24..6c4a46f 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, |