postpone calls to pet_scop_embed until after calls to scop_add_while
commitd713eee858f3e20df3e2854f95baa24b6c99e7ca
authorSven Verdoolaege <skimo@kotnet.org>
Fri, 11 Jul 2014 13:15:11 +0000 (11 15:15 +0200)
committerSven Verdoolaege <skimo@kotnet.org>
Fri, 13 Feb 2015 12:59:55 +0000 (13 13:59 +0100)
treed6fe15ac9acb525828abdef79a0db163aca285a3
parent75b816ed37d9537882d866f935cb8f1588374df9
postpone calls to pet_scop_embed until after calls to scop_add_while

The function scop_add_while calls pet_scop_add_seq on its argument scops.
When we switch to schedule trees, both pet_scop_add_seq and
pet_scop_embed will adjust the schedule and the changes
performed by pet_scop_add_seq need to be performed inside the loop,
i.e., before the changes performed by pet_scop_embed.

Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
tree2scop.c