diff options
author | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-12-06 11:00:23 +0000 |
---|---|---|
committer | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-12-06 11:00:23 +0000 |
commit | 5352fc9be132f34d87e2bc3d057c9fb57b2a350e (patch) | |
tree | 54a3a8c24b7188f270c7b2c5525fb824d6ddcbe9 /gcc/gimple-fold.c | |
parent | e887a017843106cfb7b01e7a9f25caa7614534bc (diff) | |
download | gcc-5352fc9be132f34d87e2bc3d057c9fb57b2a350e.tar.gz |
2012-12-06 Richard Biener <rguenther@suse.de>
* gimple-fold.c (fold_stmt_1): Remove code handling folding
stmts away.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194247 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gimple-fold.c')
-rw-r--r-- | gcc/gimple-fold.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/gcc/gimple-fold.c b/gcc/gimple-fold.c index 6c4a46fb10b..ef05fd9d9bf 100644 --- a/gcc/gimple-fold.c +++ b/gcc/gimple-fold.c @@ -1157,11 +1157,6 @@ fold_stmt_1 (gimple_stmt_iterator *gsi, bool inplace) bool changed = false; gimple stmt = gsi_stmt (*gsi); 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. */ switch (gimple_code (stmt)) @@ -1284,9 +1279,8 @@ fold_stmt_1 (gimple_stmt_iterator *gsi, bool inplace) stmt = gsi_stmt (*gsi); - /* Fold *& on the lhs. Don't do this if stmt folded into nothing, - as we'd changing the next stmt. */ - if (gimple_has_lhs (stmt) && stmt != next_stmt) + /* Fold *& on the lhs. */ + if (gimple_has_lhs (stmt)) { tree lhs = gimple_get_lhs (stmt); if (lhs && REFERENCE_CLASS_P (lhs)) |