On Fri, Jul 14, 2017 at 4:32 PM, Bin Cheng <bin.ch...@arm.com> wrote: > Hi, > This is a followup patch for previous fix to PR81369. In that test case, GCC > tries to distribute infinite loop, which doesn't make much sense. This patch > works conservatively by skipping loops with unknown niters. It also > simplifies > code a bit. > Bootstrap and test on x86_64 and AArch64, is it OK?
Ok. Thanks, Richard. > Thanks, > bin > 2017-07-12 Bin Cheng <bin.ch...@arm.com> > > PR target/81369 > * tree-loop-distribution.c (classify_partition): Only assert on > numer of iterations. > (merge_dep_scc_partitions): Delete prameter. Update function call. > (distribute_loop): Remove code handling loop with unknown niters. > (pass_loop_distribution::execute): Skip loop with unknown niters.