https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71887
--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> --- Author: rguenth Date: Fri Jul 15 12:56:17 2016 New Revision: 238373 URL: https://gcc.gnu.org/viewcvs?rev=238373&root=gcc&view=rev Log: 2016-07-15 Richard Biener <rguent...@suse.de> PR tree-optimization/71887 * tree-ssa-phiopt.c (absorbing_element_p): Add rhs arg and verify it is not zero for division / modulo handling. (value_replacement): Adjust. * gcc.dg/torture/pr71887.c: New testcase. Added: trunk/gcc/testsuite/gcc.dg/torture/pr71887.c Modified: trunk/gcc/ChangeLog trunk/gcc/testsuite/ChangeLog trunk/gcc/tree-ssa-phiopt.c