https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66375
--- Comment #13 from Richard Biener <rguenth at gcc dot gnu.org> --- Author: rguenth Date: Thu Jun 18 14:04:05 2015 New Revision: 224610 URL: https://gcc.gnu.org/viewcvs?rev=224610&root=gcc&view=rev Log: 2015-06-18 Richard Biener <rguent...@suse.de> Backport from mainline 2015-06-03 Richard Biener <rguent...@suse.de> PR tree-optimization/66375 * tree-scalar-evolution.c (follow_ssa_edge_binary): First add to the evolution before following SSA edges. * gcc.dg/torture/pr66375.c: New testcase. Added: branches/gcc-5-branch/gcc/testsuite/gcc.dg/torture/pr66375.c Modified: branches/gcc-5-branch/gcc/ChangeLog branches/gcc-5-branch/gcc/testsuite/ChangeLog branches/gcc-5-branch/gcc/tree-scalar-evolution.c