https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68157
--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Wed Nov 18 10:23:21 2015 New Revision: 230530 URL: https://gcc.gnu.org/viewcvs?rev=230530&root=gcc&view=rev Log: PR tree-optimization/68157 * tree-ssa-reassoc.c (attempt_builtin_powi): Set uid of pow_stmt or mul_stmt from stmt's uid. (reassociate_bb): Set uid of mul_stmt from stmt's uid. * g++.dg/opt/pr68157.C: New test. Added: trunk/gcc/testsuite/g++.dg/opt/pr68157.C Modified: trunk/gcc/ChangeLog trunk/gcc/testsuite/ChangeLog trunk/gcc/tree-ssa-reassoc.c