]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fix SLP reduction neutral op value for pointer reductions
authorRichard Biener <rguenther@suse.de>
Mon, 27 May 2024 09:38:11 +0000 (11:38 +0200)
committerRichard Biener <rguenther@suse.de>
Tue, 28 May 2024 08:15:29 +0000 (10:15 +0200)
commit65aa46ffc3b06bba3d49b9b8315610c706a1215b
tree741014c4f96cd530912bbc32ca412f264beda601
parentc65002347e595cda8b15e59e734d209283faf2b6
Fix SLP reduction neutral op value for pointer reductions

When the neutral op is the initial value we might need to convert
it from pointer to integer.

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