aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-sccvn.c
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2009-01-28 12:14:09 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2009-01-28 12:14:09 +0000
commitde081cfd3b88d197c6c3e545c6d55581140c7c21 (patch)
treee22ed45816e3ff1acc6a5f7a1c09d36975f8d64f /gcc/tree-ssa-sccvn.c
parenta9d386a14ff953d7d3a6365cfe49dae318a1f7b1 (diff)
downloadgcc-de081cfd3b88d197c6c3e545c6d55581140c7c21.zip
gcc-de081cfd3b88d197c6c3e545c6d55581140c7c21.tar.gz
gcc-de081cfd3b88d197c6c3e545c6d55581140c7c21.tar.bz2
re PR tree-optimization/38926 (ice in find_or_generate_expression, at tree-ssa-pre.c:2769)
2009-01-28 Richard Guenther <rguenther@suse.de> PR tree-optimization/38926 * tree-ssa-pre.c (add_to_value): Assert we add only expressions with the correct value id to a value. (do_regular_insertion): Use the value number of edoubleprime for the value number of the expr. Revert 2008-08-21 Richard Guenther <rguenther@suse.de> * tree-ssa-pre.c (insert_into_preds_of_block): Before inserting a PHI ask VN if it is already available. * tree-ssa-sccvn.h (vn_phi_lookup): Declare. * tree-ssa-sccvn.c (vn_phi_lookup): Export. * gcc.c-torture/compile/pr38926.c: New testcase. From-SVN: r143725
Diffstat (limited to 'gcc/tree-ssa-sccvn.c')
-rw-r--r--gcc/tree-ssa-sccvn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-ssa-sccvn.c b/gcc/tree-ssa-sccvn.c
index d9d5bc2..87ddcb6 100644
--- a/gcc/tree-ssa-sccvn.c
+++ b/gcc/tree-ssa-sccvn.c
@@ -1481,7 +1481,7 @@ static VEC(tree, heap) *shared_lookup_phiargs;
value number if it exists in the hash table. Return NULL_TREE if
it does not exist in the hash table. */
-tree
+static tree
vn_phi_lookup (gimple phi)
{
void **slot;