aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-sccvn.c
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2008-08-21 15:18:58 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2008-08-21 15:18:58 +0000
commit1e52075c544a9808b4b370ef974c198f3bb639b5 (patch)
treed081e2983bcdcea812e826d40060ea64e94eb58a /gcc/tree-ssa-sccvn.c
parent729edaa1bb60f7bffea3ed7e701373d6f37af8b0 (diff)
downloadgcc-1e52075c544a9808b4b370ef974c198f3bb639b5.zip
gcc-1e52075c544a9808b4b370ef974c198f3bb639b5.tar.gz
gcc-1e52075c544a9808b4b370ef974c198f3bb639b5.tar.bz2
tree-ssa-pre.c (insert_into_preds_of_block): Before inserting a PHI ask VN if it is already available.
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. From-SVN: r139388
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 26a65f1..0b995d6 100644
--- a/gcc/tree-ssa-sccvn.c
+++ b/gcc/tree-ssa-sccvn.c
@@ -1458,7 +1458,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. */
-static tree
+tree
vn_phi_lookup (gimple phi)
{
void **slot;