summaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-pre.c
diff options
context:
space:
mode:
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2011-02-07 16:58:17 +0000
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2011-02-07 16:58:17 +0000
commit8f190c8a91e3d1e682ba1163a9533f9217dd5425 (patch)
tree97360474f30c6761309e34c3f16854fbc0320127 /gcc/tree-ssa-pre.c
parent5825ec3f7115c8e7bdb829fed049300532a8666b (diff)
downloadgcc-8f190c8a91e3d1e682ba1163a9533f9217dd5425.tar.gz
2011-02-07 Richard Guenther <rguenther@suse.de>
PR tree-optimization/47615 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument. * tree-ssa-sccvn.c (default_vn_walk_kind): New global. (run_scc_vn): Initialize it. (visit_reference_op_load): Use it. * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE. * g++.dg/opt/pr47615.C: New testcase. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@169888 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-ssa-pre.c')
-rw-r--r--gcc/tree-ssa-pre.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-ssa-pre.c b/gcc/tree-ssa-pre.c
index e179c4f587b..00ff8cc1ab5 100644
--- a/gcc/tree-ssa-pre.c
+++ b/gcc/tree-ssa-pre.c
@@ -4853,7 +4853,7 @@ execute_pre (bool do_fre)
if (!do_fre)
loop_optimizer_init (LOOPS_NORMAL);
- if (!run_scc_vn ())
+ if (!run_scc_vn (do_fre ? VN_WALKREWRITE : VN_WALK))
{
if (!do_fre)
loop_optimizer_finalize ();