https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70724
--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> --- Author: rguenth Date: Tue Apr 19 13:17:46 2016 New Revision: 235201 URL: https://gcc.gnu.org/viewcvs?rev=235201&root=gcc&view=rev Log: 2016-04-19 Richard Biener <rguent...@suse.de> PR tree-optimization/70724 * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info restoring out from ... (free_scc_vn): ... here. * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare. * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before tail merging. (pass_fre::execute): Restore SSA info. * gcc.dg/torture/pr70724.c: New testcase. Added: branches/gcc-6-branch/gcc/testsuite/gcc.dg/torture/pr70724.c Modified: branches/gcc-6-branch/gcc/ChangeLog branches/gcc-6-branch/gcc/testsuite/ChangeLog branches/gcc-6-branch/gcc/tree-ssa-pre.c branches/gcc-6-branch/gcc/tree-ssa-sccvn.c branches/gcc-6-branch/gcc/tree-ssa-sccvn.h