aboutsummaryrefslogtreecommitdiff
path: root/gcc/expmed.c
diff options
context:
space:
mode:
authorRichard Sandiford <richard.sandiford@linaro.org>2018-01-10 08:46:07 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2018-01-10 08:46:07 +0000
commit2072a319569067b9b99154e8d1bbec894034652f (patch)
treefb71cd4c9d25b4c0689180b831233d246d68e6cb /gcc/expmed.c
parentd89f01a08e67eb856aa03268972dbee7f4e40bd2 (diff)
downloadgcc-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/expmed.c')
-rw-r--r--gcc/expmed.c17
1 files changed, 1 insertions, 16 deletions
diff --git a/gcc/expmed.c b/gcc/expmed.c
index 808b067..f34ed93 100644
--- a/gcc/expmed.c
+++ b/gcc/expmed.c
@@ -5355,22 +5355,7 @@ make_tree (tree type, rtx x)
return fold_convert (type, make_tree (t, XEXP (x, 0)));
case CONST:
- {
- rtx op = XEXP (x, 0);
- if (GET_CODE (op) == VEC_DUPLICATE)
- {
- tree elt_tree = make_tree (TREE_TYPE (type), XEXP (op, 0));
- return build_vector_from_val (type, elt_tree);
- }
- if (GET_CODE (op) == VEC_SERIES)
- {
- tree itype = TREE_TYPE (type);
- tree base_tree = make_tree (itype, XEXP (op, 0));
- tree step_tree = make_tree (itype, XEXP (op, 1));
- return build_vec_series (type, base_tree, step_tree);
- }
- return make_tree (type, op);
- }
+ return make_tree (type, XEXP (x, 0));
case SYMBOL_REF:
t = SYMBOL_REF_DECL (x);