re PR tree-optimization/84859 (bogus -Warray-bounds on a memcpy in a loop)
authorRichard Biener <rguenther@suse.de>
Mon, 19 Mar 2018 14:08:58 +0000 (14:08 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 19 Mar 2018 14:08:58 +0000 (14:08 +0000)
commit68d93a19c4d764012d947ef7c0ab8abbb0d72775
treebb10fb061c799fb918ebf41eac6f1b6f6a97e5ef
parent8f3284a4866183caec602737f35c088d982e18bb
re PR tree-optimization/84859 (bogus -Warray-bounds on a memcpy in a loop)

2018-03-19  Richard Biener  <rguenther@suse.de>

PR tree-optimization/84859
* tree-ssa-phiopt.c (single_trailing_store_in_bb): New function.
(cond_if_else_store_replacement): Perform sinking operation on
single-store BBs regardless of MAX_STORES_TO_SINK setting.
Generalize what a BB with a single eligible store is.

* gcc.dg/tree-ssa/pr84859.c: New testcase.
* gcc.dg/tree-ssa/pr35286.c: Disable cselim.
* gcc.dg/tree-ssa/split-path-6.c: Likewise.
* gcc.dg/tree-ssa/split-path-7.c: Likewise.

From-SVN: r258645
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/pr35286.c
gcc/testsuite/gcc.dg/tree-ssa/pr84859.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/split-path-6.c
gcc/testsuite/gcc.dg/tree-ssa/split-path-7.c
gcc/tree-ssa-phiopt.c