Re: Store VECTOR_CST_NELTS directly in tree_node

2017-09-14 Thread Richard Sandiford
Richard Biener writes: > On Thu, Sep 14, 2017 at 1:13 PM, Richard Sandiford > wrote: >> Previously VECTOR_CST_NELTS (t) read the number of elements from >> TYPE_VECTOR_SUBPARTS (TREE_TYPE (t)). There were two ways of handling >> this with variable TYPE_VECTOR_SUBPARTS: either forcibly convert th

Re: Store VECTOR_CST_NELTS directly in tree_node

2017-09-14 Thread Richard Biener
On Thu, Sep 14, 2017 at 1:13 PM, Richard Sandiford wrote: > Previously VECTOR_CST_NELTS (t) read the number of elements from > TYPE_VECTOR_SUBPARTS (TREE_TYPE (t)). There were two ways of handling > this with variable TYPE_VECTOR_SUBPARTS: either forcibly convert the > number to a constant (which

Store VECTOR_CST_NELTS directly in tree_node

2017-09-14 Thread Richard Sandiford
Previously VECTOR_CST_NELTS (t) read the number of elements from TYPE_VECTOR_SUBPARTS (TREE_TYPE (t)). There were two ways of handling this with variable TYPE_VECTOR_SUBPARTS: either forcibly convert the number to a constant (which is doable) or store the number directly in the VECTOR_CST. The la