tree-ssa-copy.c (copy_prop_visit_phi_node): Do not leave the PHIs value undefined.

2009-03-28  Richard Guenther  <rguenther@suse.de>

	* tree-ssa-copy.c (copy_prop_visit_phi_node): Do not leave
	the PHIs value undefined.

From-SVN: r145193
This commit is contained in:
Richard Guenther 2009-03-28 16:02:18 +00:00 committed by Richard Biener
parent bc6600ab2a
commit fbb789d49a
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2009-03-28 Richard Guenther <rguenther@suse.de>
* tree-ssa-copy.c (copy_prop_visit_phi_node): Do not leave
the PHIs value undefined.
2009-03-28 Jan Hubicka <jh@suse.cz>
* tree-pass.h (pass_fixup_cfg): New pass.

View File

@ -892,7 +892,7 @@ copy_prop_visit_phi_node (gimple phi)
memory reference of all the other arguments. */
if (phi_val.value == NULL_TREE)
{
phi_val.value = arg_val->value;
phi_val.value = arg_val->value ? arg_val->value : arg;
continue;
}