]> git.ipfire.org Git - thirdparty/gcc.git/commit
vect: Use an array to replace 3 relevant variables
authorFeng Xue <fxue@os.amperecomputing.com>
Sun, 16 Jun 2024 05:21:13 +0000 (13:21 +0800)
committerFeng Xue <fxue@os.amperecomputing.com>
Thu, 20 Jun 2024 02:37:00 +0000 (10:37 +0800)
commitb9c369d900ccfbd2271028611af3f08b5cf6f998
tree6552f8744e7fb4d526842578bd082ab7e2c70dd6
parent0726f1cde5459ccdbaa6af8c6904276a28d572ba
vect: Use an array to replace 3 relevant variables

It's better to place 3 relevant independent variables into array, since we
have requirement to access them via an index in the following patch. At the
same time, this change may get some duplicated code be more compact.

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

gcc/
* tree-vect-loop.cc (vect_transform_reduction): Replace vec_oprnds0/1/2
with one new array variable vec_oprnds[3].
gcc/tree-vect-loop.cc