Re: Don't install unnecessary ARRAY_REF element sizes

2019-12-03 Thread Richard Biener
On Mon, Dec 2, 2019 at 5:33 PM Richard Sandiford wrote: > > Even EXACT_DIV_EXPR doesn't distribute across addition for wrapping > types, so in general we can't fold EXACT_DIV_EXPRs of POLY_INT_CSTs > at compile time. This was causing an ICE when trying to gimplify the > element size field in an A

Don't install unnecessary ARRAY_REF element sizes

2019-12-02 Thread Richard Sandiford
Even EXACT_DIV_EXPR doesn't distribute across addition for wrapping types, so in general we can't fold EXACT_DIV_EXPRs of POLY_INT_CSTs at compile time. This was causing an ICE when trying to gimplify the element size field in an ARRAY_REF. If the result of that EXACT_DIV_EXPR is an invariant, we