https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71059
--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> --- Author: rguenth Date: Thu May 12 13:46:26 2016 New Revision: 236175 URL: https://gcc.gnu.org/viewcvs?rev=236175&root=gcc&view=rev Log: 2016-05-12 Richard Biener <rguent...@suse.de> PR tree-optimization/71059 * tree-ssa-pre.c (phi_translate_1): Fully fold translated nary before looking up or entering the expression into the VN hashes. * tree-ssa-sccvn.c (vn_nary_build_or_lookup): Fix comment typo. Make sure to re-use NARYs without result as inserted by phi-translation. * gcc.dg/torture/pr71059.c: New testcase. Added: trunk/gcc/testsuite/gcc.dg/torture/pr71059.c Modified: trunk/gcc/ChangeLog trunk/gcc/testsuite/ChangeLog trunk/gcc/tree-ssa-pre.c trunk/gcc/tree-ssa-sccvn.c