tree-loop-distribution.c (classify_partition): Return whether a reduction appeared...
authorRichard Biener <rguenther@suse.de>
Fri, 14 Jun 2019 11:29:44 +0000 (11:29 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 14 Jun 2019 11:29:44 +0000 (11:29 +0000)
commite748435795f8c6f3b77fa0ac18a43151a52ad324
tree43a482d1b56a79b82c0422e99490701c1090d933
parent46771da57463c62f66af32e9189f1b6fb8bbe8c7
tree-loop-distribution.c (classify_partition): Return whether a reduction appeared in all partitions and do not stop builtin...

2019-06-14  Richard Biener  <rguenther@suse.de>

* tree-loop-distribution.c (classify_partition): Return
whether a reduction appeared in all partitions and do not
stop builtin detection because of this.
(distribute_loop): Sort a non-builtin partition last if
there's a reduction in all partitions and make sure the
partition prevailing as last is not a builtin.

* gcc.dg/tree-ssa/ldist-26.c: Adjust.

From-SVN: r272284
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/ldist-26.c
gcc/tree-loop-distribution.c