re PR tree-optimization/88069 (ICE in check_loop_closed_ssa_def, at tree-ssa-loop...
authorRichard Biener <rguenther@suse.de>
Thu, 22 Nov 2018 09:50:58 +0000 (09:50 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 22 Nov 2018 09:50:58 +0000 (09:50 +0000)
2018-11-22  Richard Biener  <rguenther@suse.de>

PR tree-optimization/88069
* tree-ssa-sccvn.c (visit_phi): Tweak previous fix to not
apply to default defs.

From-SVN: r266371

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

index 9899320..f1f6b83 100644 (file)
@@ -1,3 +1,9 @@
+2018-11-22  Richard Biener  <rguenther@suse.de>
+
+       PR tree-optimization/88069
+       * tree-ssa-sccvn.c (visit_phi): Tweak previous fix to not
+       apply to default defs.
+
 2018-11-22  Jakub Jelinek  <jakub@redhat.com>
 
        PR target/85644
index 941752e..17d9f5e 100644 (file)
@@ -4205,6 +4205,7 @@ visit_phi (gimple *phi, bool *inserted, bool backedges_varying_p)
         given that allows us to escape a region in alias walking.  */
       || (sameval
          && TREE_CODE (sameval) == SSA_NAME
+         && !SSA_NAME_IS_DEFAULT_DEF (sameval)
          && SSA_NAME_IS_VIRTUAL_OPERAND (sameval)
          && (SSA_VAL (sameval, &visited_p), !visited_p)))
     /* Note this just drops to VARYING without inserting the PHI into