https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81945
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Wed Dec 6 08:16:44 2017 New Revision: 255438 URL: https://gcc.gnu.org/viewcvs?rev=255438&root=gcc&view=rev Log: PR tree-optimization/81945 * cfgloop.h (FOR_EACH_LOOP_FN): Use FN instead of hardcoding fn. * tree-cfg.c (move_sese_region_to_fn): If any of the loops moved to dest_cfun has orig_loop_num set, either remap it to the new loop number if the loop got moved too, or clear it. * gcc.dg/graphite/pr81945.c: New test. Added: trunk/gcc/testsuite/gcc.dg/graphite/pr81945.c Modified: trunk/gcc/ChangeLog trunk/gcc/cfgloop.h trunk/gcc/testsuite/ChangeLog trunk/gcc/tree-cfg.c