This is the mail archive of the gcc-cvs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

r242201 - in /branches/ARM/sve-branch/gcc: cfge...


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]