]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/tree-ssa.c
Merge in trunk.
[thirdparty/gcc.git] / gcc / tree-ssa.c
index 0b743d1d435528a19fadeee68dca747465374328..9072ce11673921409ae16cf91f79c1010af5c65a 100644 (file)
@@ -1426,9 +1426,9 @@ non_rewritable_mem_ref_base (tree ref)
           || TREE_CODE (TREE_TYPE (decl)) == COMPLEX_TYPE)
          && useless_type_conversion_p (TREE_TYPE (base),
                                        TREE_TYPE (TREE_TYPE (decl)))
-         && mem_ref_offset (base).fits_uhwi ()
-         && tree_to_double_int (TYPE_SIZE_UNIT (TREE_TYPE (decl)))
-            .ugt (mem_ref_offset (base))
+         && wi::fits_uhwi_p (mem_ref_offset (base))
+         && wi::gtu_p (wi::to_offset (TYPE_SIZE_UNIT (TREE_TYPE (decl))),
+                       mem_ref_offset (base))
          && multiple_of_p (sizetype, TREE_OPERAND (base, 1),
                            TYPE_SIZE_UNIT (TREE_TYPE (base))))
        return NULL_TREE;