diff options
author | Richard Sandiford <richard.sandiford@linaro.org> | 2018-01-10 08:46:07 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2018-01-10 08:46:07 +0000 |
commit | 2072a319569067b9b99154e8d1bbec894034652f (patch) | |
tree | fb71cd4c9d25b4c0689180b831233d246d68e6cb /gcc/emit-rtl.c | |
parent | d89f01a08e67eb856aa03268972dbee7f4e40bd2 (diff) | |
download | gcc-2072a319569067b9b99154e8d1bbec894034652f.zip gcc-2072a319569067b9b99154e8d1bbec894034652f.tar.gz gcc-2072a319569067b9b99154e8d1bbec894034652f.tar.bz2 |
Mostly revert r254296
r254296 added support for (const ...) wrappers around vectors,
but in the end the agreement was to use a variable-length
encoding of CONST_VECTOR (and VECTOR_CST) instead. This patch
therefore reverts the bits that are no longer needed.
The rtl.texi part isn't a full revert, since r254296 also updated the
documentation to mention unspecs in address calculations, and to relax
the requirement that the mode had to be Pmode.
2018-01-10 Richard Sandiford <richard.sandiford@linaro.org>
gcc/
* doc/rtl.texi: Remove documentation of (const ...) wrappers
for vectors, as a partial revert of r254296.
* rtl.h (const_vec_p): Delete.
(const_vec_duplicate_p): Don't test for vector CONSTs.
(unwrap_const_vec_duplicate, const_vec_series_p): Likewise.
* expmed.c (make_tree): Likewise.
Revert:
* common.md (E, F): Use CONSTANT_P instead of checking for
CONST_VECTOR.
* emit-rtl.c (gen_lowpart_common): Use const_vec_p instead of
checking for CONST_VECTOR.
From-SVN: r256421
Diffstat (limited to 'gcc/emit-rtl.c')
-rw-r--r-- | gcc/emit-rtl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c index c6ce358..a722985 100644 --- a/gcc/emit-rtl.c +++ b/gcc/emit-rtl.c @@ -1593,7 +1593,7 @@ gen_lowpart_common (machine_mode mode, rtx x) return gen_rtx_fmt_e (GET_CODE (x), int_mode, XEXP (x, 0)); } else if (GET_CODE (x) == SUBREG || REG_P (x) - || GET_CODE (x) == CONCAT || const_vec_p (x) + || GET_CODE (x) == CONCAT || GET_CODE (x) == CONST_VECTOR || CONST_DOUBLE_AS_FLOAT_P (x) || CONST_SCALAR_INT_P (x) || CONST_POLY_INT_P (x)) return lowpart_subreg (mode, x, innermode); |