https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67043
--- Comment #6 from Thomas Preud'homme <thopre01 at gcc dot gnu.org> --- Author: thopre01 Date: Tue Aug 4 02:11:58 2015 New Revision: 226540 URL: https://gcc.gnu.org/viewcvs?rev=226540&root=gcc&view=rev Log: 2015-08-04 Thomas Preud'homme <thomas.preudho...@arm.com> gcc/ PR tree-optimization/67043 * loop-invariant.c (move_invariant_reg): Recompute luids in loop preheader after hoisting invariant in it. (find_defs): Force recomputation of all luids. gcc/testsuite/ PR tree-optimization/67043 * gcc.dg/pr67043.c: New test. Added: trunk/gcc/testsuite/gcc.dg/pr67043.c Modified: trunk/gcc/ChangeLog trunk/gcc/loop-invariant.c trunk/gcc/testsuite/ChangeLog