]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fix SLP reduction initial value for pointer reductions
authorRichard Biener <rguenther@suse.de>
Fri, 23 Feb 2024 10:21:20 +0000 (11:21 +0100)
committerRichard Biener <rguenther@suse.de>
Wed, 8 May 2024 12:30:39 +0000 (14:30 +0200)
commitb65cc09f9c78633a4f29d458a0549f36627c1259
treef94bbcb578377567599e6dfeeebf6f8dec5487f8
parentb6822bf3e3f3ff37d64be700f139c8fce3a9bf44
Fix SLP reduction initial value for pointer reductions

For pointer reductions we need to convert the initial value to
the vector component integer type.

* tree-vect-loop.cc (get_initial_defs_for_reduction): Convert
initial value to the vector component type.
gcc/tree-vect-loop.cc