From efae2f507e461bfef66a62769c157a3769b0bdea Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Tue, 17 Jul 2018 17:54:10 -0600 Subject: [PATCH] re PR tree-optimization/86010 (redundant memset with smaller size not eliminated) PR tree-optimization/86010 * tree-ssa-dse.c (compute_trims): Fix typo/thinko. From-SVN: r262841 --- gcc/ChangeLog | 3 +++ gcc/tree-ssa-dse.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ac4abdaf1ba..bccc0c76b04 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,8 @@ 2018-07-17 Jeff Law + PR tree-optimization/86010 + * tree-ssa-dse.c (compute_trims): Fix typo/thinko. + * config/mips/mips.c (vr4130_align_insns): Update for recent changes to label_to_alignment. diff --git a/gcc/tree-ssa-dse.c b/gcc/tree-ssa-dse.c index ebc4a1e0fc1..4cb8c0f83ac 100644 --- a/gcc/tree-ssa-dse.c +++ b/gcc/tree-ssa-dse.c @@ -260,7 +260,7 @@ compute_trims (ao_ref *ref, sbitmap live, int *trim_head, int *trim_tail, /* If more than a word remains, then make sure to keep the starting point at least word aligned. */ if (last_live - first_live > UNITS_PER_WORD) - *trim_head &= (UNITS_PER_WORD - 1); + *trim_head &= ~(UNITS_PER_WORD - 1); if ((*trim_head || *trim_tail) && dump_file && (dump_flags & TDF_DETAILS)) -- 2.30.2