re PR tree-optimization/82929 (r254579 causes ICE: tree check: expected ssa_name...
authorJakub Jelinek <jakub@redhat.com>
Fri, 10 Nov 2017 14:43:13 +0000 (15:43 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 10 Nov 2017 14:43:13 +0000 (15:43 +0100)
commit127ef36981ebdfbe3be0f8df710090642a2a4abe
treec68a1dc595dca3d5343f87ec39f6fc2f1e5794a3
parent93814e2d690f7ccae4d87365b66d05cfa4a11576
re PR tree-optimization/82929 (r254579 causes ICE: tree check: expected ssa_name, have array_ref in has_single_use, at ssa-iterators.h:400)

PR tree-optimization/82929
* gimple-ssa-store-merging.c (struct store_immediate_info): Add
ops_swapped_p non-static data member.
(store_immediate_info::store_immediate_info): Clear it.
(imm_store_chain_info::coalesce_immediate_stores): If swapping
ops set ops_swapped_p.
(count_multiple_uses): Handle ops_swapped_p.

* gcc.dg/pr82929.c: New test.
* g++.dg/opt/pr82929.C: New test.

From-SVN: r254628
gcc/ChangeLog
gcc/gimple-ssa-store-merging.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/opt/pr82929.C [new file with mode: 0644]
gcc/testsuite/gcc.dg/pr82929.c [new file with mode: 0644]