aboutsummaryrefslogtreecommitdiff
path: root/gcc/optabs-tree.c
diff options
context:
space:
mode:
authorAlan Lawrence <alan.lawrence@arm.com>2016-01-14 16:30:56 +0000
committerAlan Lawrence <alalaw01@gcc.gnu.org>2016-01-14 16:30:56 +0000
commitb56ed680d4715cfc3cf2c4940aef30daec124a41 (patch)
treefa137cfba7ff589c5cac37f0369840923f730fc2 /gcc/optabs-tree.c
parent59a2f0fa2a8c82c6959889c8bedd15f9e67615d0 (diff)
downloadgcc-b56ed680d4715cfc3cf2c4940aef30daec124a41.zip
gcc-b56ed680d4715cfc3cf2c4940aef30daec124a41.tar.gz
gcc-b56ed680d4715cfc3cf2c4940aef30daec124a41.tar.bz2
Tidy: remove reduc_xxx_optab migration code.
* doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m}, reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m}, reduc_uplus_@var{m}): Remove. * expr.c (expand_expr_real_2): Remove expansion path for reduc_[us](min|max|plus) optabs. * optabs-tree.c (scalar_reduc_to_vector): Remove. * optabs-tree.h (scalar_reduc_to_vector): Remove. * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab, reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove. * tree-vect-loop.c (vectorizable_reduction): Remove test for reduc_[us](min|max|plus) optabs. From-SVN: r232373
Diffstat (limited to 'gcc/optabs-tree.c')
-rw-r--r--gcc/optabs-tree.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/gcc/optabs-tree.c b/gcc/optabs-tree.c
index d9dd3fc..a229b97 100644
--- a/gcc/optabs-tree.c
+++ b/gcc/optabs-tree.c
@@ -246,26 +246,6 @@ optab_for_tree_code (enum tree_code code, const_tree type,
}
}
-/* Given optab UNOPTAB that reduces a vector to a scalar, find instead the old
- optab that produces a vector with the reduction result in one element,
- for a tree with type TYPE. */
-
-optab
-scalar_reduc_to_vector (optab unoptab, const_tree type)
-{
- switch (unoptab)
- {
- case reduc_plus_scal_optab:
- return TYPE_UNSIGNED (type) ? reduc_uplus_optab : reduc_splus_optab;
-
- case reduc_smin_scal_optab: return reduc_smin_optab;
- case reduc_umin_scal_optab: return reduc_umin_optab;
- case reduc_smax_scal_optab: return reduc_smax_optab;
- case reduc_umax_scal_optab: return reduc_umax_optab;
- default: return unknown_optab;
- }
-}
-
/* Function supportable_convert_operation
Check whether an operation represented by the code CODE is a