http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47615
--- Comment #6 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-03-02 13:56:48 UTC --- Author: rguenth Date: Wed Mar 2 13:56:41 2011 New Revision: 170614 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=170614 Log: 2011-03-02 Richard Guenther <rguent...@suse.de> Backport from mainline 2011-02-07 Richard Guenther <rguent...@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. Added: branches/gcc-4_5-branch/gcc/testsuite/g++.dg/opt/pr47615.C Modified: branches/gcc-4_5-branch/gcc/ChangeLog branches/gcc-4_5-branch/gcc/testsuite/ChangeLog branches/gcc-4_5-branch/gcc/tree-ssa-pre.c branches/gcc-4_5-branch/gcc/tree-ssa-sccvn.c branches/gcc-4_5-branch/gcc/tree-ssa-sccvn.h