summaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-sccvn.c
diff options
context:
space:
mode:
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2009-01-28 12:14:09 +0000
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2009-01-28 12:14:09 +0000
commit3dc4c394707f371f6082cd4ceb8947c0f256bca1 (patch)
treee22ed45816e3ff1acc6a5f7a1c09d36975f8d64f /gcc/tree-ssa-sccvn.c
parent613498113654a9e3b6bdcf4c53e6a77d93f0dac8 (diff)
downloadgcc-3dc4c394707f371f6082cd4ceb8947c0f256bca1.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@143725 138bc75d-0d04-0410-961f-82ee72b054a4
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 d9d5bc27d76..87ddcb6872c 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;