aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog7
-rw-r--r--gcc/gimple-ssa-store-merging.c2
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index eb2bdd6..ab0d1af 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,10 @@
+2017-11-21 Jakub Jelinek <jakub@redhat.com>
+
+ PR tree-optimization/83086
+ * gimple-ssa-store-merging.c
+ (imm_store_chain_info::try_coalesce_bswap): Test this_n.base_addr
+ rather than n.base_addr.
+
2017-11-21 Martin Liska <mliska@suse.cz>
PR rtl-optimization/82044
diff --git a/gcc/gimple-ssa-store-merging.c b/gcc/gimple-ssa-store-merging.c
index c0b1015..ce0f1f2 100644
--- a/gcc/gimple-ssa-store-merging.c
+++ b/gcc/gimple-ssa-store-merging.c
@@ -2390,7 +2390,7 @@ imm_store_chain_info::try_coalesce_bswap (merged_store_group *merged_store,
? try_size - info->bitsize - bitpos
: bitpos))
return false;
- if (n.base_addr && vuse_store)
+ if (this_n.base_addr && vuse_store)
{
unsigned int j;
for (j = first; j <= last; ++j)