re PR tree-optimization/86010 (redundant memset with smaller size not eliminated)
authorJeff Law <law@redhat.com>
Tue, 17 Jul 2018 23:54:10 +0000 (17:54 -0600)
committerJeff Law <law@gcc.gnu.org>
Tue, 17 Jul 2018 23:54:10 +0000 (17:54 -0600)
PR tree-optimization/86010
* tree-ssa-dse.c (compute_trims): Fix typo/thinko.

From-SVN: r262841

gcc/ChangeLog
gcc/tree-ssa-dse.c

index ac4abda..bccc0c7 100644 (file)
@@ -1,5 +1,8 @@
 2018-07-17  Jeff Law  <law@redhat.com>
 
+       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.
 
index ebc4a1e..4cb8c0f 100644 (file)
@@ -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))