]> git.ipfire.org Git - thirdparty/gcc.git/commit
vect: Add a function to check lane-reducing stmt
authorFeng Xue <fxue@os.amperecomputing.com>
Sat, 15 Jun 2024 15:17:10 +0000 (23:17 +0800)
committerFeng Xue <fxue@os.amperecomputing.com>
Thu, 20 Jun 2024 02:35:38 +0000 (10:35 +0800)
commit70466e6f9d9fb87f78ffe2e397ca876b380cb493
tree090edef1f11732443da8e4ab8e91e8f83ca19cba
parentebfffb6c6557f1375c230ae6751f697cdfab4a60
vect: Add a function to check lane-reducing stmt

Add a utility function to check if a statement is lane-reducing operation,
which could simplify some existing code.

2024-06-16 Feng Xue <fxue@os.amperecomputing.com>

gcc/
* tree-vectorizer.h (lane_reducing_stmt_p): New function.
* tree-vect-slp.cc (vect_analyze_slp): Use new function
lane_reducing_stmt_p to check statement.
gcc/tree-vect-slp.cc
gcc/tree-vectorizer.h