diff options
author | Feng Xue <fxue@os.amperecomputing.com> | 2024-05-29 13:12:12 +0800 |
---|---|---|
committer | Feng Xue <fxue@os.amperecomputing.com> | 2024-06-01 08:31:43 +0800 |
commit | c0f31701556c4162463f28bc0f03007f40a6176e (patch) | |
tree | 6d3c21cd28a6d3541d798525de3f5e301127924e /gcc/cp/tree.cc | |
parent | 3c75a4c03da78b434603bc0bd88a1395c3c5b25c (diff) | |
download | gcc-c0f31701556c4162463f28bc0f03007f40a6176e.zip gcc-c0f31701556c4162463f28bc0f03007f40a6176e.tar.gz gcc-c0f31701556c4162463f28bc0f03007f40a6176e.tar.bz2 |
vect: Add a function to check lane-reducing code
Check if an operation is lane-reducing requires comparison of code against
three kinds (DOT_PROD_EXPR/WIDEN_SUM_EXPR/SAD_EXPR). Add an utility
function to make source coding for the check handy and concise.
2024-05-29 Feng Xue <fxue@os.amperecomputing.com>
gcc/
* tree-vectorizer.h (lane_reducing_op_p): New function.
* tree-vect-slp.cc (vect_analyze_slp): Use new function
lane_reducing_op_p to check statement code.
* tree-vect-loop.cc (vect_transform_reduction): Likewise.
(vectorizable_reduction): Likewise, and change name of a local
variable that holds the result flag.
Diffstat (limited to 'gcc/cp/tree.cc')
0 files changed, 0 insertions, 0 deletions