re PR tree-optimization/85720 (bad codegen for looped assignment of primitives at...
authorBin Cheng <bin.cheng@arm.com>
Fri, 25 May 2018 11:09:42 +0000 (11:09 +0000)
committerBin Cheng <amker@gcc.gnu.org>
Fri, 25 May 2018 11:09:42 +0000 (11:09 +0000)
commit1623d9f346086582c49cb747c3dabd062e730c42
tree5bd4c87d04602bd948a51e66e35ffd26ba123d98
parentcd3b2b6248a07f0da0685636b71d146403ebf776
re PR tree-optimization/85720 (bad codegen for looped assignment of primitives at -O2)

PR tree-optimization/85720

* tree-loop-distribution.c (break_alias_scc_partitions): Don't merge
SCC if all partitions are builtins.
(version_loop_by_alias_check): New parameter.  Generate cancelable
runtime alias check if all partitions are builtins.
(distribute_loop): Update call to above function.

gcc/testsuite
* gcc.dg/tree-ssa/pr85720.c: New test.
* gcc.target/i386/avx256-unaligned-store-2.c: Disable loop pattern
distribution.

From-SVN: r260753
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/pr85720.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/avx256-unaligned-store-2.c
gcc/tree-loop-distribution.c