diff options
author | Richard Guenther <rguenther@suse.de> | 2008-02-29 14:01:09 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2008-02-29 14:01:09 +0000 |
commit | 5be891a43c47f0c8185ef65bdc9bc47f83297e2d (patch) | |
tree | da42da694c0bb4e404d6d58f8d105fa4104a0958 /gcc/tree-ssa-pre.c | |
parent | 0a5fe1104e1a3d5a582248a434777951c0199837 (diff) | |
download | gcc-5be891a43c47f0c8185ef65bdc9bc47f83297e2d.zip gcc-5be891a43c47f0c8185ef65bdc9bc47f83297e2d.tar.gz gcc-5be891a43c47f0c8185ef65bdc9bc47f83297e2d.tar.bz2 |
tree-ssa-pre.c (get_sccvn_value): Create missing VNs via vn_lookup_or_add.
2008-02-29 Richard Guenther <rguenther@suse.de>
* tree-ssa-pre.c (get_sccvn_value): Create missing VNs via
vn_lookup_or_add.
* tree-ssa-sccnv.c (visit_reference_op_store): Use the rhs
value for comparing for a store match.
(simplify_unary_expression): Do nothing for SSA_NAMEs.
(try_to_simplify): Do not do a full-blown reference lookup.
From-SVN: r132768
Diffstat (limited to 'gcc/tree-ssa-pre.c')
-rw-r--r-- | gcc/tree-ssa-pre.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/tree-ssa-pre.c b/gcc/tree-ssa-pre.c index 6a06b2a..a488257 100644 --- a/gcc/tree-ssa-pre.c +++ b/gcc/tree-ssa-pre.c @@ -3256,7 +3256,9 @@ get_sccvn_value (tree name) !ZERO_SSA_OPERANDS (defstmt2, SSA_OP_ALL_VIRTUALS)) gcc_assert (defstmt); } - valvh = vn_lookup_or_add_with_stmt (val, defstmt); + /* We lookup with the LHS, so do not use vn_lookup_or_add_with_stmt + here, as that will result in useless reference lookups. */ + valvh = vn_lookup_or_add (val); } if (dump_file && (dump_flags & TDF_DETAILS)) |