re PR tree-optimization/83047 (glibc/crypt/crypt_util.c gets miscompiled)
authorJakub Jelinek <jakub@redhat.com>
Tue, 21 Nov 2017 08:41:47 +0000 (09:41 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 21 Nov 2017 08:41:47 +0000 (09:41 +0100)
commit97031af75528283f0b6fc554acdbb692431ccfb1
tree80338b57205c17318e206161d3551baac09fb8df
parent7768f20b0a08f8f735de9f4088945023cce0230b
re PR tree-optimization/83047 (glibc/crypt/crypt_util.c gets miscompiled)

PR tree-optimization/83047
* gimple-ssa-store-merging.c
(imm_store_chain_info::output_merged_store): If the loads with the
same vuse are in different basic blocks, for load_gsi pick a load
location that is dominated by the other loads.

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

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