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 ac4abdaf1babba2802fb8ecafe7db3107b8ced2b..bccc0c76b04842414a206d1348a9bc7f09e59897 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 ebc4a1e0fc1721a0b7e3c9eed0e982463ce18ce5..4cb8c0f83aca77320fe95a945c5711cb01095925 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))