r242201 - in /branches/ARM/sve-branch/gcc: cfge...
rsandifo@gcc.gnu.org
rsandifo@gcc.gnu.org
Fri Nov 11 17:17:00 GMT 2016
Author: rsandifo
Date: Fri Nov 11 17:17:48 2016
New Revision: 242201
URL: https://gcc.gnu.org/viewcvs?rev=242201&root=gcc&view=rev
Log:
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
for VECTOR_CST.
The patch also changes various bits of VECTOR_CST code to use
VECTOR_CST_NELTS instead of TYPE_VECTOR_SUBPARTS.
Modified:
branches/ARM/sve-branch/gcc/cfgexpand.c
branches/ARM/sve-branch/gcc/expr.c
branches/ARM/sve-branch/gcc/fold-const.c
branches/ARM/sve-branch/gcc/tree-core.h
branches/ARM/sve-branch/gcc/tree.c
branches/ARM/sve-branch/gcc/tree.h
More information about the Gcc-cvs
mailing list