aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-sccvn.c
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2018-11-22 09:50:58 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2018-11-22 09:50:58 +0000
commitd42ef0f85fa3ceacfa64fdded5c08f5bfb669185 (patch)
tree86c57e438ca0390f3f126a184af301120fb8cddd /gcc/tree-ssa-sccvn.c
parente15bac63bad1cae4efa93f9b783e0397bca13f1d (diff)
downloadgcc-d42ef0f85fa3ceacfa64fdded5c08f5bfb669185.zip
gcc-d42ef0f85fa3ceacfa64fdded5c08f5bfb669185.tar.gz
gcc-d42ef0f85fa3ceacfa64fdded5c08f5bfb669185.tar.bz2
re PR tree-optimization/88069 (ICE in check_loop_closed_ssa_def, at tree-ssa-loop-manip.c:709)
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
Diffstat (limited to 'gcc/tree-ssa-sccvn.c')
-rw-r--r--gcc/tree-ssa-sccvn.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/tree-ssa-sccvn.c b/gcc/tree-ssa-sccvn.c
index 941752e..17d9f5e 100644
--- a/gcc/tree-ssa-sccvn.c
+++ b/gcc/tree-ssa-sccvn.c
@@ -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