On Mon, Jun 12, 2017 at 7:02 PM, Bin Cheng <bin.ch...@arm.com> wrote: > Hi, > This simple patch marks distributed loops and skips it in following > distribution. > > Bootstrap and test on x86_64 and AArch64. Is it OK?
This is not necessary, FOR_EACH_LOOP first builds a vector of loops to iterate over so it will never pick up loops added during iteration. Richard. > Thanks, > bin > 2017-06-07 Bin Cheng <bin.ch...@arm.com> > > * tree-loop-distribution.c (generate_loops_for_partition): Mark > distributed loops. > (pass_loop_distribution::execute): Skip distributed loops.