aboutsummaryrefslogtreecommitdiff
path: root/gcc/gimple-ssa-store-merging.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2017-11-21 14:54:08 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2017-11-21 14:54:08 +0100
commitaa11164a39053f6f0e24d922a5b6b993c47a96e6 (patch)
treed95c54bdcfd80e3f002944b84e87c6b045748b8f /gcc/gimple-ssa-store-merging.c
parent938f9248db10f40bd95f09a53742e9063d4814ae (diff)
downloadgcc-aa11164a39053f6f0e24d922a5b6b993c47a96e6.zip
gcc-aa11164a39053f6f0e24d922a5b6b993c47a96e6.tar.gz
gcc-aa11164a39053f6f0e24d922a5b6b993c47a96e6.tar.bz2
re PR tree-optimization/83086 (valgrind error in gimple-ssa-store-merging.c for recent build)
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
Diffstat (limited to 'gcc/gimple-ssa-store-merging.c')
-rw-r--r--gcc/gimple-ssa-store-merging.c2
1 files changed, 1 insertions, 1 deletions
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)