diff options
author | Richard Sandiford <richard.sandiford@arm.com> | 2019-11-18 15:29:53 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2019-11-18 15:29:53 +0000 |
commit | 78930e4b4867c0558cf347778591a67a0b235ca0 (patch) | |
tree | 06c6bc2d446aa1379fcca92decf227ccf6da7351 /gcc/tree-data-ref.c | |
parent | cb77875a86c67f606ff59261348e1d81b945aa44 (diff) | |
download | gcc-78930e4b4867c0558cf347778591a67a0b235ca0.zip gcc-78930e4b4867c0558cf347778591a67a0b235ca0.tar.gz gcc-78930e4b4867c0558cf347778591a67a0b235ca0.tar.bz2 |
Add an empty constructor shortcut to build_vector_from_ctor
Empty vector constructors are equivalent to zero vectors. If we handle
that case directly, we can support it for variable-length vectors and
can hopefully make things more efficient for fixed-length vectors.
This is needed by a later C++ patch.
2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
gcc/
* tree.c (build_vector_from_ctor): Directly return a zero vector for
empty constructors.
From-SVN: r278413
Diffstat (limited to 'gcc/tree-data-ref.c')
0 files changed, 0 insertions, 0 deletions