re PR tree-optimization/83086 (valgrind error in gimple-ssa-store-merging.c for recen...
authorJakub Jelinek <jakub@redhat.com>
Tue, 21 Nov 2017 13:54:08 +0000 (14:54 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 21 Nov 2017 13:54:08 +0000 (14:54 +0100)
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.

From-SVN: r255002

gcc/ChangeLog
gcc/gimple-ssa-store-merging.c

index eb2bdd64588d597ac9000d9bb2826f0be08254a7..ab0d1afabc7dfbb869ce51c9fcb2108e276765e9 100644 (file)
@@ -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
index c0b1015d9f52b1f6798c71f09df5e9b277bf5d7b..ce0f1f2142637354c1b41fb757552a4dd64855e8 100644 (file)
@@ -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)