Commit 37376165 by Richard Biener Committed by Richard Biener

gimple-fold.c (fold_stmt_1): Remove code handling folding stmts away.

2012-12-06  Richard Biener  <rguenther@suse.de>

	* gimple-fold.c (fold_stmt_1): Remove code handling folding
	stmts away.

From-SVN: r194247
parent 71aa66e4
2012-12-06 Richard Biener <rguenther@suse.de>
* gimple-fold.c (fold_stmt_1): Remove code handling folding
stmts away.
2012-12-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com> 2012-12-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
* doc/sourcebuild.texi: Document arm_v8_neon_ok. * doc/sourcebuild.texi: Document arm_v8_neon_ok.
...@@ -1157,11 +1157,6 @@ fold_stmt_1 (gimple_stmt_iterator *gsi, bool inplace) ...@@ -1157,11 +1157,6 @@ fold_stmt_1 (gimple_stmt_iterator *gsi, bool inplace)
bool changed = false; bool changed = false;
gimple stmt = gsi_stmt (*gsi); gimple stmt = gsi_stmt (*gsi);
unsigned i; unsigned i;
gimple_stmt_iterator gsinext = *gsi;
gimple next_stmt;
gsi_next (&gsinext);
next_stmt = gsi_end_p (gsinext) ? NULL : gsi_stmt (gsinext);
/* Fold the main computation performed by the statement. */ /* Fold the main computation performed by the statement. */
switch (gimple_code (stmt)) switch (gimple_code (stmt))
...@@ -1284,9 +1279,8 @@ fold_stmt_1 (gimple_stmt_iterator *gsi, bool inplace) ...@@ -1284,9 +1279,8 @@ fold_stmt_1 (gimple_stmt_iterator *gsi, bool inplace)
stmt = gsi_stmt (*gsi); stmt = gsi_stmt (*gsi);
/* Fold *& on the lhs. Don't do this if stmt folded into nothing, /* Fold *& on the lhs. */
as we'd changing the next stmt. */ if (gimple_has_lhs (stmt))
if (gimple_has_lhs (stmt) && stmt != next_stmt)
{ {
tree lhs = gimple_get_lhs (stmt); tree lhs = gimple_get_lhs (stmt);
if (lhs && REFERENCE_CLASS_P (lhs)) if (lhs && REFERENCE_CLASS_P (lhs))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment