Commit e1ab3876 by Richard Guenther Committed by Richard Biener

tree-cfg.c (replace_uses_by): Use fold_stmt, not fold_stmt_inplace.

2011-09-05  Richard Guenther  <rguenther@suse.de>

	* tree-cfg.c (replace_uses_by): Use fold_stmt, not fold_stmt_inplace.

From-SVN: r178527
parent 830c740f
2011-09-05 Richard Guenther <rguenther@suse.de> 2011-09-05 Richard Guenther <rguenther@suse.de>
* tree-cfg.c (replace_uses_by): Use fold_stmt, not fold_stmt_inplace.
2011-09-05 Richard Guenther <rguenther@suse.de>
* stor-layout.c (layout_type): Use size_binop for array size * stor-layout.c (layout_type): Use size_binop for array size
calculations. calculations.
...@@ -1566,9 +1566,11 @@ replace_uses_by (tree name, tree val) ...@@ -1566,9 +1566,11 @@ replace_uses_by (tree name, tree val)
if (gimple_code (stmt) != GIMPLE_PHI) if (gimple_code (stmt) != GIMPLE_PHI)
{ {
gimple_stmt_iterator gsi = gsi_for_stmt (stmt);
size_t i; size_t i;
fold_stmt_inplace (stmt); fold_stmt (&gsi);
stmt = gsi_stmt (gsi);
if (cfgcleanup_altered_bbs && !is_gimple_debug (stmt)) if (cfgcleanup_altered_bbs && !is_gimple_debug (stmt))
bitmap_set_bit (cfgcleanup_altered_bbs, gimple_bb (stmt)->index); bitmap_set_bit (cfgcleanup_altered_bbs, gimple_bb (stmt)->index);
......
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