https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86554
--- Comment #11 from Richard Biener <rguenth at gcc dot gnu.org> --- Author: rguenth Date: Wed Feb 13 14:22:06 2019 New Revision: 268846 URL: https://gcc.gnu.org/viewcvs?rev=268846&root=gcc&view=rev Log: 2019-02-13 Richard Biener <rguent...@suse.de> Backport from mainline 2019-01-08 Richard Biener <rguent...@suse.de> PR tree-optimization/86554 * tree-ssa-sccvn.c (visit_nary_op): When value-numbering to expressions with different overflow behavior make sure there's an available expression on the path. * gcc.dg/torture/pr86554-1.c: New testcase. * gcc.dg/torture/pr86554-2.c: Likewise. Added: branches/gcc-8-branch/gcc/testsuite/gcc.dg/torture/pr86554-1.c branches/gcc-8-branch/gcc/testsuite/gcc.dg/torture/pr86554-2.c Modified: branches/gcc-8-branch/gcc/ChangeLog branches/gcc-8-branch/gcc/testsuite/ChangeLog branches/gcc-8-branch/gcc/tree-ssa-sccvn.c