]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/gimple-ssa-strength-reduction.c
Add inline functions for various bitwise operations.
[thirdparty/gcc.git] / gcc / gimple-ssa-strength-reduction.c
index 9e0b3d1d162d97cd9c14befb8f44206c6b719ec9..68115ee7896c438a04afc2e44c34dd497129ffec 100644 (file)
@@ -1874,7 +1874,7 @@ replace_ref (tree *expr, slsr_cand_t c)
      requirement for the data type.  See PR58041.  */
   get_object_alignment_1 (*expr, &align, &misalign);
   if (misalign != 0)
-    align = (misalign & -misalign);
+    align = least_bit_hwi (misalign);
   if (align < TYPE_ALIGN (acc_type))
     acc_type = build_aligned_type (acc_type, align);