re PR tree-optimization/45073 (gfortran.dg/assumed_charlen_function_3.f90 ICEs with -fprofile-generate)
2010-07-26 Richard Guenther <rguenther@suse.de> PR middle-end/45073 * gimple-fold.c (gimplify_and_update_call_from_tree): Conditionalize SSA updating on being in SSA form. From-SVN: r162537
This commit is contained in:
parent
bd422c4a74
commit
edc74207de
2 changed files with 12 additions and 3 deletions
|
@ -1,3 +1,9 @@
|
|||
2010-07-26 Richard Guenther <rguenther@suse.de>
|
||||
|
||||
PR middle-end/45073
|
||||
* gimple-fold.c (gimplify_and_update_call_from_tree): Conditionalize
|
||||
SSA updating on being in SSA form.
|
||||
|
||||
2010-07-26 Richard Guenther <rguenther@suse.de>
|
||||
|
||||
PR middle-end/45056
|
||||
|
|
|
@ -853,8 +853,11 @@ gimplify_and_update_call_from_tree (gimple_stmt_iterator *si_p, tree expr)
|
|||
gsi_next (si_p);
|
||||
}
|
||||
new_stmt = gsi_stmt (i);
|
||||
find_new_referenced_vars (new_stmt);
|
||||
mark_symbols_for_renaming (new_stmt);
|
||||
if (gimple_in_ssa_p (cfun))
|
||||
{
|
||||
find_new_referenced_vars (new_stmt);
|
||||
mark_symbols_for_renaming (new_stmt);
|
||||
}
|
||||
/* If the new statement has a VUSE, update it with exact SSA name we
|
||||
know will reach this one. */
|
||||
if (gimple_vuse (new_stmt))
|
||||
|
@ -892,7 +895,7 @@ gimplify_and_update_call_from_tree (gimple_stmt_iterator *si_p, tree expr)
|
|||
SSA_NAME_DEF_STMT (gimple_vdef (stmt)) = laststore;
|
||||
update_stmt (laststore);
|
||||
}
|
||||
else
|
||||
else if (gimple_in_ssa_p (cfun))
|
||||
{
|
||||
unlink_stmt_vdef (stmt);
|
||||
release_defs (stmt);
|
||||
|
|
Loading…
Add table
Reference in a new issue