Schedule reduction partition in the last.
authorBin Cheng <bin.cheng@linux.alibaba.com>
Thu, 9 Jul 2020 10:10:03 +0000 (18:10 +0800)
committerBin Cheng <bin.cheng@linux.alibaba.com>
Thu, 9 Jul 2020 10:14:26 +0000 (18:14 +0800)
commitdd21b03900085c4d60bf03207ad28bcbfbc86a4b
tree9faa1ceaf5595589ac8c7966a9a8fbff60c6a37f
parent5acef69f9d3d9f3c537b5e5157519edf02f86c4d
Schedule reduction partition in the last.

If reduction partition's SCC is broken by runtime alias checks, force
a negative post order to it so that it will be scheduled in the last.

2020-07-09  Bin Cheng  <bin.cheng@linux.alibaba.com>

gcc/
PR tree-optimization/95804
* tree-loop-distribution.c (break_alias_scc_partitions): Force
negative post order to reduction partition.

gcc/testsuite/
PR tree-optimization/95804
* gcc.dg/tree-ssa/pr95804.c: New test.
gcc/testsuite/gcc.dg/tree-ssa/pr95804.c [new file with mode: 0644]
gcc/tree-loop-distribution.c