]> gcc.gnu.org Git - gcc.git/commit
re PR tree-optimization/84503 (store-merging miscompilation on powerpc64 with -O3...
authorJakub Jelinek <jakub@redhat.com>
Thu, 22 Feb 2018 08:28:42 +0000 (09:28 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 22 Feb 2018 08:28:42 +0000 (09:28 +0100)
commitc5679c37aad3775ecbb41b1a191514b13bf73f77
tree38ab37d523c307e1c49bcda952b3c3b0814ed074
parentad18eed284cc7a461f2030a7c0996f69048a9e92
re PR tree-optimization/84503 (store-merging miscompilation on powerpc64 with -O3 since r241789)

PR tree-optimization/84503
* gimple-ssa-store-merging.c (merged_store_group::merge_into): Compute
width as info->bitpos + info->bitsize - start.
(merged_store_group::merge_overlapping): Simplify width computation.
(check_no_overlap): New function.
(imm_store_chain_info::try_coalesce_bswap): Compute expected
start + width and last_order of the group, fail if check_no_overlap
fails.
(imm_store_chain_info::coalesce_immediate_stores): Don't merge info
to group if check_no_overlap fails.

* gcc.dg/pr84503-1.c: New test.
* gcc.dg/pr84503-2.c: New test.

From-SVN: r257891
gcc/ChangeLog
gcc/gimple-ssa-store-merging.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr84503-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/pr84503-2.c [new file with mode: 0644]
This page took 0.058752 seconds and 5 git commands to generate.