On Tue, Oct 17, 2017 at 4:50 PM, Bin Cheng <bin.ch...@arm.com> wrote: > Hi, > The patch fixes ICE reported in PR82574. In order to distribute builtin > partition, we need > to check that data reference must be executed exactly once per iteration. In > distribution > for loop nest, this has to be checked against each loop in the nest. One > optimization can > be done is we only need to check against the outermost loop for perfect nest. > Bootstrap and test on x86_64. Is it OK?
+ /* Data reference must be executed exactly once per iteration of each + loop in the loop nest. We only need to check dominant information dominance Ok with that fixed. Richard. > Thanks, > bin > 2017-10-17 Bin Cheng <bin.ch...@arm.com> > > PR tree-optimization/82574 > * tree-loop-distribution.c (find_single_drs): New parameter. Check > that data reference must be executed exactly once per iteration > against the outermost loop in nest. > (classify_partition): Update call to above function. > > gcc/testsuite > 2017-10-17 Bin Cheng <bin.ch...@arm.com> > > PR tree-optimization/82574 > * gcc.dg/tree-ssa/pr82574.c: New test.