re PR tree-optimization/86844 (wrong code caused by store merging pass)
authorJakub Jelinek <jakub@redhat.com>
Wed, 12 Sep 2018 09:25:07 +0000 (11:25 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 12 Sep 2018 09:25:07 +0000 (11:25 +0200)
commit6cd4c66e9bb92d66d4b5c1b21dfafe49f93eacc7
treeeedf40724f05a2fb00b0bb352cdde55f1fcf382f
parent9095b53a8c4a5663b89db946462ff534fe0836e7
re PR tree-optimization/86844 (wrong code caused by store merging pass)

PR tree-optimization/86844
* gimple-ssa-store-merging.c
(imm_store_chain_info::coalesce_immediate): For overlapping stores, if
there are any overlapping stores in between them, make sure they are
also coalesced or we give up completely.

* gcc.c-torture/execute/pr86844.c: New test.
* gcc.dg/store_merging_22.c: New test.
* gcc.dg/store_merging_23.c: New test.

Co-Authored-By: Andreas Krebbel <krebbel@linux.ibm.com>
From-SVN: r264232
gcc/ChangeLog
gcc/gimple-ssa-store-merging.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/pr86844.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/store_merging_22.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/store_merging_23.c [new file with mode: 0644]