r256586 - in /trunk/gcc: ChangeLog tree-vectori...

rsandifo@gcc.gnu.org rsandifo@gcc.gnu.org
Fri Jan 12 14:48:00 GMT 2018


Author: rsandifo
Date: Fri Jan 12 14:48:35 2018
New Revision: 256586

URL: https://gcc.gnu.org/viewcvs?rev=256586&root=gcc&view=rev
Log:
Handle poly_int vector sizes in get_vec_alignment_for_array_type

get_vectype_for_scalar_type returns a variable-length vector type
for SVE, whereas get_vec_alignment_for_array_type assumed it would
always be an INTEGER_CST.

This is needed to build libstdc++-v3/src/closures.cc for SVE
(and probably many other places besides -- this was just the
first hit).

2018-01-12  Richard Sandiford  <richard.sandiford@linaro.org>

gcc/
	* tree-vectorizer.c (get_vec_alignment_for_array_type): Handle
	polynomial type sizes.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/tree-vectorizer.c



More information about the Gcc-cvs mailing list