From patchwork Tue Nov 27 12:00:05 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Remove dead code from fold_stmt_1 X-Patchwork-Submitter: Richard Biener X-Patchwork-Id: 202197 Message-Id: To: gcc-patches@gcc.gnu.org Date: Tue, 27 Nov 2012 13:00:05 +0100 (CET) From: Richard Biener List-Id: This removes dead code as suggested by Jakub. Bootstrapped and tested on x86_64-unknown-linux-gnu. Richard. 2012-11-27 Richard Biener * gimple-fold.c (fold_stmt_1): Remove unnecessary code. Index: gcc/gimple-fold.c =================================================================== --- gcc/gimple-fold.c (revision 193839) +++ gcc/gimple-fold.c (working copy) @@ -1282,14 +1282,6 @@ fold_stmt_1 (gimple_stmt_iterator *gsi, 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,