+2020-02-11 Richard Biener <rguenther@suse.de>
+
+ PR tree-optimization/93661
+ PR tree-optimization/93662
+ * tree-ssa-sccvn.c (vn_reference_lookup_3): Properly guard
+ tree_to_poly_int64.
+ * tree-sra.c (get_access_for_expr): Likewise.
+
2020-02-10 Jakub Jelinek <jakub@redhat.com>
PR target/93637
+2020-02-11 Richard Biener <rguenther@suse.de>
+
+ PR tree-optimization/93661
+ PR tree-optimization/93662
+ * gcc.dg/pr93661.c: New testcase.
+
2020-02-12 Patrick Palka <ppalka@redhat.com>
PR c++/69448
if (tree basesize = DECL_SIZE (base))
{
- poly_int64 sz = tree_to_poly_int64 (basesize);
- if (offset < 0 || known_le (sz, offset))
+ poly_int64 sz;
+ if (offset < 0
+ || !poly_int_tree_p (basesize, &sz)
+ || known_le (sz, offset))
return NULL;
}
/* For now handle clearing memory with partial defs. */
else if (known_eq (ref->size, maxsize)
&& integer_zerop (gimple_call_arg (def_stmt, 1))
+ && tree_fits_poly_int64_p (len)
&& tree_to_poly_int64 (len).is_constant (&leni)
&& offset.is_constant (&offseti)
&& offset2.is_constant (&offset2i)