gimple-fold.c (fold_stmt_1): Remove unnecessary code.
authorRichard Biener <rguenther@suse.de>
Tue, 27 Nov 2012 12:06:52 +0000 (12:06 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 27 Nov 2012 12:06:52 +0000 (12:06 +0000)
2012-11-27  Richard Biener  <rguenther@suse.de>

* gimple-fold.c (fold_stmt_1): Remove unnecessary code.

From-SVN: r193844

gcc/ChangeLog
gcc/gimple-fold.c

index 29efeebeca2ba6d7466b880da64dc2b8d82e177a..75da5268e81676c94d545be0355b94ba6c906d68 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 251be2485d4d9d02e76c2a59d97156386c527106..6c4a46fb10b674cef9f4aeeb6ed9b24c661cbdcd 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,