On Fri, Jul 01, 2022 at 07:43:28PM +0200, Aldy Hernandez wrote: > You can still say N=255 and things continue to work as they do now, since > m_len[] is still statically determined. The only difference is that before, > the size of the structure would be 2+1+255+sizeof(int) whereas now it would > be 1 more because of the byte I'm using for num_elements.
So, what N do you want to use for SSA_NAME_RANGE_INFO? N=255 wouldn't be very space efficient especially if the common case is a single range or two. For such cases making e.g. m_len not an embedded array, but pointer to somewhere after the HOST_WIDE_INT array in the same allocation would be better. Jakub