]> git.ipfire.org Git - thirdparty/gcc.git/commit
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>
Fri, 10 Jul 2020 04:02:43 +0000 (12:02 +0800)
commitc7247272375899af51726df8424e911f00374200
tree9a84504200d276769cf0abeb5dc1dbb848c14113
parentf737ca45bee4ea61571393e04495955aeb7d67ab
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.

(cherry picked from commit dd21b03900085c4d60bf03207ad28bcbfbc86a4b)
gcc/testsuite/gcc.dg/tree-ssa/pr95804.c [new file with mode: 0644]
gcc/tree-loop-distribution.c