On 10/23/2017 11:22 AM, Richard Sandiford wrote: > verify_expr ensured that the size and offset in gimple BIT_FIELD_REFs > satisfied tree_fits_uhwi_p. This patch extends that so that they can > be poly_uint64s, and adds helper routines for accessing them when the > verify_expr requirements apply. > > > 2017-10-23 Richard Sandiford <richard.sandif...@linaro.org> > Alan Hayward <alan.hayw...@arm.com> > David Sherwood <david.sherw...@arm.com> > > gcc/ > * tree.h (bit_field_size, bit_field_offset): New functions. > * hsa-gen.c (gen_hsa_addr): Use them. > * tree-ssa-forwprop.c (simplify_bitfield_ref): Likewise. > (simplify_vector_constructor): Likewise. > * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise. > * tree-cfg.c (verify_expr): Require the sizes and offsets of a > BIT_FIELD_REF to be poly_uint64s rather than uhwis. > * fold-const.c (fold_ternary_loc): Protect tree_to_uhwi with > tree_fits_uhwi_p. > OK. jeff