PR tree-optimization/86844
commita1cf1dfee94b510a62d9280d18f3fd5f29eff990
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 12 Sep 2018 09:25:07 +0000 (12 09:25 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 12 Sep 2018 09:25:07 +0000 (12 09:25 +0000)
treeeedf40724f05a2fb00b0bb352cdde55f1fcf382f
parentd7b385b3781237d3b4d303c7118eae63d2174945
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@264232 138bc75d-0d04-0410-961f-82ee72b054a4
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]