r256089 - in /trunk/gcc: ChangeLog optabs-query...
rsandifo@gcc.gnu.org
rsandifo@gcc.gnu.org
Tue Jan 2 18:25:00 GMT 2018
Author: rsandifo
Date: Tue Jan 2 18:25:45 2018
New Revision: 256089
URL: https://gcc.gnu.org/viewcvs?rev=256089&root=gcc&view=rev
Log:
qimode_for_vec_perm
The vec_perm code falls back to doing byte-level permutes if
element-level permutes aren't supported. There were two copies
of the code to calculate the mode, and later patches add another,
so this patch splits it out into a helper function.
2018-01-02 Richard Sandiford <richard.sandiford@linaro.org>
gcc/
* optabs-query.h (qimode_for_vec_perm): Declare.
* optabs-query.c (can_vec_perm_p): Split out qimode search to...
(qimode_for_vec_perm): ...this new function.
* optabs.c (expand_vec_perm): Use qimode_for_vec_perm.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/optabs-query.c
trunk/gcc/optabs-query.h
trunk/gcc/optabs.c
More information about the Gcc-cvs
mailing list