aboutsummaryrefslogtreecommitdiff
path: root/libcc1/plugin.cc
diff options
context:
space:
mode:
authorAlan Lawrence <alan.lawrence@arm.com>2014-10-27 14:20:52 +0000
committerAlan Lawrence <alalaw01@gcc.gnu.org>2014-10-27 14:20:52 +0000
commitd43a252e2fa612b14fa7f6f4dec3320c8b313a1c (patch)
treebcaacd0bd9927dbb5bc3f3a2660d16c40919ad1b /libcc1/plugin.cc
parent99f76d9bacfcef28546dda5a51cb3651ba422518 (diff)
downloadgcc-d43a252e2fa612b14fa7f6f4dec3320c8b313a1c.zip
gcc-d43a252e2fa612b14fa7f6f4dec3320c8b313a1c.tar.gz
gcc-d43a252e2fa612b14fa7f6f4dec3320c8b313a1c.tar.bz2
Add new optabs for reducing vectors to scalars
PR tree-optimization/61114 * doc/md.texi (Standard Names): Add reduc_(plus,[us](min|max))|scal optabs, and note in reduc_[us](plus|min|max) to prefer the former. * expr.c (expand_expr_real_2): Use reduc_..._scal if available, fall back to old reduc_... + BIT_FIELD_REF only if not. * optabs.c (optab_for_tree_code): for REDUC_(MAX,MIN,PLUS)_EXPR, return the reduce-to-scalar (reduc_..._scal) optab. (scalar_reduc_to_vector): New. * optabs.def (reduc_smax_scal_optab, reduc_smin_scal_optab, reduc_plus_scal_optab, reduc_umax_scal_optab, reduc_umin_scal_optab): New. * optabs.h (scalar_reduc_to_vector): Declare. * tree-vect-loop.c (vectorizable_reduction): Look for optabs reducing to either scalar or vector. From-SVN: r216737
Diffstat (limited to 'libcc1/plugin.cc')
0 files changed, 0 insertions, 0 deletions