re PR tree-optimization/83170 (ICE: Segmentation fault - during GIMPLE pass: store...
authorJakub Jelinek <jakub@redhat.com>
Sat, 2 Dec 2017 07:58:57 +0000 (08:58 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Sat, 2 Dec 2017 07:58:57 +0000 (08:58 +0100)
commit30fa8e9c06f511fd3a750f7649a3ee59e1721eca
treead1656efcbfedfd1f8d81bae0e1a6b0e41fa0fc2
parentedb48cdb9f8dcc52b20f12785a1d570084597842
re PR tree-optimization/83170 (ICE: Segmentation fault - during GIMPLE pass: store-merging)

PR tree-optimization/83170
PR tree-optimization/83241
* gimple-ssa-store-merging.c
(imm_store_chain_info::try_coalesce_bswap): Update vuse field from
gimple_vuse (ins_stmt) in case it has changed.
(imm_store_chain_info::output_merged_store): Likewise.

* gcc.dg/store_merging_17.c: New test.

From-SVN: r255356
gcc/ChangeLog
gcc/gimple-ssa-store-merging.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/store_merging_17.c [new file with mode: 0644]