Re: Make get_value_for_expr check for INTEGER_CSTs

2019-09-18 Thread Richard Biener
On Wed, Sep 18, 2019 at 8:54 AM Richard Sandiford wrote: > > CONSTANT lattice values are symbolic constants rather than > compile-time constants, so among other things can be POLY_INT_CSTs. > This patch fixes a case in which we assumed all CONSTANTs were either > ADDR_EXPRs or INTEGER_CSTs. > > Th

Make get_value_for_expr check for INTEGER_CSTs

2019-09-17 Thread Richard Sandiford
CONSTANT lattice values are symbolic constants rather than compile-time constants, so among other things can be POLY_INT_CSTs. This patch fixes a case in which we assumed all CONSTANTs were either ADDR_EXPRs or INTEGER_CSTs. This is tested by later SVE patches. Tested on aarch64-linux-gnu with SV