gimple-ssa-store-merging.c: Include gimplify-me.h.
authorRichard Biener <rguenther@suse.de>
Wed, 2 Nov 2016 15:00:48 +0000 (15:00 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 2 Nov 2016 15:00:48 +0000 (15:00 +0000)
commitaa55dc0ca33c1c22af4aab73d232d0811edca305
treec0174797d5ae4269718454c3d3228a775255464b
parent3df19fa0d40019eff5060e31abd6add22ac1df4b
gimple-ssa-store-merging.c: Include gimplify-me.h.

2016-11-02  Richard Biener  <rguenther@suse.de>

* gimple-ssa-store-merging.c: Include gimplify-me.h.
(imm_store_chain_info::output_merged_stores): Force base_addr
to be proper GIMPLE for a MEM_REF address.
(pass_store_merging::execute): Restrict negative bitpos
handling to non-MEM_REF bases.  Remove TREE_THIS_VOLATILE
check.  Take into account non-NULL_TREE offset if the base
is already addressable.

* gcc.dg/store_merging_8.c: New testcase.

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