From 1e52075c544a9808b4b370ef974c198f3bb639b5 Mon Sep 17 00:00:00 2001 From: Richard Guenther Date: Thu, 21 Aug 2008 15:18:58 +0000 Subject: 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 * 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 --- gcc/tree-ssa-sccvn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/tree-ssa-sccvn.c') 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; -- cgit v1.1