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]

r242202 - in /branches/ARM/sve-branch/gcc: conf...


Author: rsandifo
Date: Fri Nov 11 17:17:57 2016
New Revision: 242202

URL: https://gcc.gnu.org/viewcvs?rev=242202&root=gcc&view=rev
Log:
Pass number of elements alongside tree* when constructing vectors

Several routines take an element array as a "tree *".  This patch
also makes them take the number of elements in the array.

The reason this is useful is that, after later patches, the number
of elements in a general vector can be variable, so there was a
choice between having the affected routines assert that the
number is constant or have the callers pass the constant number
of units down alongside the pointer.  The latter seemed better
since it ensures that the caller and callee are in sync.
Using a vec might in some ways be better, but several callers
want to pass an array splice.

Modified:
    branches/ARM/sve-branch/gcc/config/sparc/sparc.c
    branches/ARM/sve-branch/gcc/expmed.c
    branches/ARM/sve-branch/gcc/fold-const.c
    branches/ARM/sve-branch/gcc/gimple-fold.c
    branches/ARM/sve-branch/gcc/optabs-query.c
    branches/ARM/sve-branch/gcc/optabs-query.h
    branches/ARM/sve-branch/gcc/tree-ssa-forwprop.c
    branches/ARM/sve-branch/gcc/tree-vect-data-refs.c
    branches/ARM/sve-branch/gcc/tree-vect-generic.c
    branches/ARM/sve-branch/gcc/tree-vect-loop.c
    branches/ARM/sve-branch/gcc/tree-vect-slp.c
    branches/ARM/sve-branch/gcc/tree-vect-stmts.c
    branches/ARM/sve-branch/gcc/tree-vectorizer.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]