2008-05-16 Richard Guenther <rguenther@suse.de>
* tree-ssa-propagate.c (substitute_and_fold): Fix stmt walking
on deletion of the last stmt.
From-SVN: r135412
+2008-05-16 Richard Guenther <rguenther@suse.de>
+
+ * tree-ssa-propagate.c (substitute_and_fold): Fix stmt walking
+ on deletion of the last stmt.
+
2008-05-15 H.J. Lu <hongjiu.lu@intel.com>
* config/i386/i386.c (ix86_expand_vector_init_general): Optimize
&& (!(call = get_call_expr_in (stmt))
|| !TREE_SIDE_EFFECTS (call)))
{
+ block_stmt_iterator i2;
if (dump_file && dump_flags & TDF_DETAILS)
{
fprintf (dump_file, "Removing dead stmt ");
fprintf (dump_file, "\n");
}
prop_stats.num_dce++;
- bsi_remove (&i, true);
+ bsi_prev (&i);
+ i2 = bsi_for_stmt (stmt);
+ bsi_remove (&i2, true);
release_defs (stmt);
- if (!bsi_end_p (i))
- bsi_prev (&i);
continue;
}