This is the mail archive of the
mailing list for the GCC project.
r242201 - in /branches/ARM/sve-branch/gcc: cfge...
- From: rsandifo at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Fri, 11 Nov 2016 17:17:48 -0000
- Subject: r242201 - in /branches/ARM/sve-branch/gcc: cfge...
Date: Fri Nov 11 17:17:48 2016
New Revision: 242201
Store VECTOR_CST_NELTS directly in tree node
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 latter seemed better, since it involved less
pointer chasing and since the tree_node u field is otherwise unused
The patch also changes various bits of VECTOR_CST code to use
VECTOR_CST_NELTS instead of TYPE_VECTOR_SUBPARTS.