]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
tree-ssa-copy.c (copy_prop_visit_phi_node): Do not leave the PHIs value undefined.
authorRichard Guenther <rguenther@suse.de>
Sat, 28 Mar 2009 16:02:18 +0000 (16:02 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Sat, 28 Mar 2009 16:02:18 +0000 (16:02 +0000)
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

gcc/ChangeLog
gcc/tree-ssa-copy.c

index e1fac756fedb922f44331655f456600fd33d28f5..9cf73c24bb686cd3dacd5d82d44ec239d7fbc4cb 100644 (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.
index 8f060c2b5a203a4eea1d83fdec46a7998b5a62db..5b3616394bb83ab4cbe6fb8b77b745b671aa03bb 100644 (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;
        }