2012-11-27 Richard Biener <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 27 Nov 2012 12:06:52 +0000 (12:06 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 27 Nov 2012 12:06:52 +0000 (12:06 +0000)
* gimple-fold.c (fold_stmt_1): Remove unnecessary code.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193844 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/gimple-fold.c

index 29efeeb..75da526 100644 (file)
@@ -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.
index 251be24..6c4a46f 100644 (file)
@@ -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,