https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87280
--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> --- Author: rguenth Date: Wed Sep 12 14:03:21 2018 New Revision: 264241 URL: https://gcc.gnu.org/viewcvs?rev=264241&root=gcc&view=rev Log: 2018-09-12 Richard Biener <rguent...@suse.de> PR tree-optimization/87280 * tree-ssa-sccvn.c (process_bb): Handle the case of executable edge but unreachable target. (do_rpo_vn): For conservatively handling a PHI only mark the backedge executable but not the block reachable. * gcc.dg/torture/pr87280.c: New testcase. Added: trunk/gcc/testsuite/gcc.dg/torture/pr87280.c Modified: trunk/gcc/ChangeLog trunk/gcc/testsuite/ChangeLog trunk/gcc/tree-ssa-sccvn.c